How To Disable Automatic Comment Insertion In VIM

Author: , August 6th, 2020

Disable NOW in vim:

To disable auto-comments permanently, add the following line to ~/.vimrc:

To see the current settings:

Visit https://vim.fandom.com/wiki/Disable_automatic_comment_insertion for more information!

How To Prevent Vim From Auto-Commenting New Lines

Author: , August 4th, 2019

To prevent vim from added net comments, edit the .vimrc file in your home directory, and add:

How To Turn Off Auto-Comment In Vim

Author: , September 29th, 2011

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