We usually need to change the display of some text, and these changes can be made through the text changing command.

Delete char

We can use Ctrl + D to delete the character on the current cursor:

1
Ctrl + D    # press Control and D keys
img

before manipulating

img

after manipulating

Backward delete char

We can use Backspace to delete the character before the current cursor:

1
Backspace    # press Backspace key
img

before manipulating

img

after manipulating

Exchange chars

We can use Ctrl + T to swap the characters between the one the current cursor is on and the char before that char:

1
Ctrl + T    # press Control and T keys
img

before manipulating

img

after manipulating

If we want to restore them, we have to move the cursor to the previous position and press the same command.

Exchange words

We can use Alt + T to swap the words between the one the current cursor is on and the the word before that word:

1
Alt + T    # press ContrAlternateol and T keys
img

before manipulating

img

after manipulating

If we want to restore them, we have to move the cursor to the beginning of the word “Changing” and press the same command.

Uppercase word

We can use Alt + U to uppercase the word on or after the current cursor:

1
Alt + U    # press Alternate and U keys
img

before manipulating

img

after manipulating

Lowercase word

We can use Alt + U to lowercase the word on or after the current cursor:

1
Alt + L    # press Alternate and L keys
img

before manipulating

img

after manipulating

Capitalize word

We can use Alt + C to capitalize the word on or after the current cursor:

1
Alt + C    # press Alternate and C keys
img

before manipulating

img

after manipulating

References 8.4.3 Commands For Changing Text

Buy me a coffeeBuy me a coffee