Once upon a time, Sbob <sbob(a)quadratum-braccas.com> said:
Anyone know how to disable the vim feature where it auto comments
all lines after a comment, meaning if I add a comment line and then
hit enter for a new line I do not want the new line to automatically
hace a comment (#) char... it's driving me nuts!
What you want is "set formatoptions-=o"..., but it's actually a little
tricky to change this behavior, because of how vim loads config (file
type config comes after ~/.vimrc, and after ~/.vim/after/* files). The
most common way is to use an autocmd, so something like:
autocmd FileType * set formatoptions-=o
in ~/.vimrc.
--
Chris Adams <linux(a)cmadams.net>