Using vim I can change the word my cursor is on by tying cw. I can change the current character with cl. I can change everything inside some brackets with ci{.
I can even change the current and next line with cj. But how do I change just the line that the cursor is on?
I'm looking for something shorter or more efficient than one of these commands:
ddko, 0C, 0Da, etc
To delete the current line and start insert mode, use cc. To change everything that comes after the cursor, use either c$ or C
The simplest way to do this is S, or SHIFT-s, as it changes the entire line regardless of the cursor location.
cc works similarly, but is arguably harder to type, with two consecutive non-home row key presses.
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