Vim automatically continues a comment when I press Enter in Insert mode, which I find helpful.
However, I do not want the comment continued after pressing 'o' from normal mode to insert a new line below the end of the comment.
I read that I need to remove the option
o from my
formatoptions, so I put this line right at the end of my vimrc file:
But it has changed nothing, and when I execute
:set formatoptions from iside of vim it shows me my formatoptions are
How do I get rid of the 'o'?
I've followed some steps pointed out in the comments by Sato Katsura:
The solution starts with running
:verb set foto see where formatoptions was last modified.
Here's the output to
verb set fo:
formatoptions=croql Last set from /usr/share/vim/vim73/ftplugin/vim.vim