Sunday, May 18, 2014

VIM: Disable automatic comment insertion

Sometimes vim does weird things, like when you copy/paste stuff, that contained a line started with comment, then vim ALL next inserted line will put with comment in front...

this post is about how to get rid of it:
http://vim.wikia.com/wiki/Disable_automatic_comment_insertion

OR

create .vimrc file, it its not exists yet and add there following line:

autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o

No comments:

Post a Comment