I usually want to cut the word under cursor and paste it somewhere else, is there any existing command can do this?
For example, if the cursor is under x
in AA BXB CC DD
, the result should be AA CC DD
while BXB
is copied to system clipboard.
To delete one character before (to the left of) the cursor, type X (uppercase).
In normal mode, d is the key for cutting (deleting) text. Move the cursor to the desired position and press the d key, followed by the movement command. Here are some helpful deleting commands: dd - Delete (cut) the current line, including the newline character.
Type diw
This means delete in word.
Related commands:
yiw
ciw
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With