How To Turn Off Auto-Comment In Vim

Published Date Author: , Posted September 29th, 2011 at 1:31:11pm

Put the following line in your .vimrc file:

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

Or, use this one-off command when in VIM:

:set formatoptions-=c formatoptions-=r formatoptions-=o

http://vim.wikia.com/wiki/Disable_automatic_comment_insertion

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.