created 2002 · complexity basic · author Feral · version 5.7
This is relevant when your
From :help fo-table, "Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode."
I like this behavior enough to keep the
o option, however at times I want to not insert the comment chars, and although manually deleting the added chars is not hard I present these simple mappings that delete the added chars automatically.
nnoremap go o<Esc>S nnoremap gO O<Esc>S
This makes go open a new line under the cursor and removes inserted chars, while gO opens a new line above the cursor and removes inserted chars.