Its the fn key and backspace ( <X) ) or alt and backspace ( <X) ). I think what TK is getting at is a way to forward delete without breaking hand position on home row, in the same quick way you can backspace with Ctrl-H. It's an important capability for maintaining high editing speed and minimizing repetitive strain.
Shift + x is instead the appropriate command because was meant for that: Shift + x delete the previous character like Shift + p paste in the previous column.
In general, d<motion> will delete from current position to ending position after <motion>. This means that:
Read this to learn all the things you can combine with the 'd' command.
I have been in this scenario many times. I want to get rid of all the spaces in line 10 so it would join with line 9 after the comma.
This is basically a simple line join in VIM.
kJ
does the trick (watch below)
To answer point #3, diw
and daw
are excellent.
In insert mode:
Otherwise:
In command mode:
bdw
, back delete word.d^
(to the first non-blank), d0
(to the first character)BdW
(go to first whitespace delete to next whitespace)(Community wiki, feel free to hack.)
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