I am in normal mode, at the end of a line. I want to clear the line (delete all characters of the line), and drop into insert mode so that I can start writing something else on that line. Is there a Vim shortcut for this?
Ideally, I would like to preserve the leading whitespaces on the line, but even if I can't that should be fine.
You can use S or cc to do that (synonyms). They will keep your indentation if the autoindent
option is on. Both can accept an optional count if you want to remove multiple lines.
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