Author:
erics , August 6th, 2020
Disable NOW in vim:
To disable auto-comments permanently, add the following line to ~/.vimrc:
autocmd FileType * setlocal formatoptions -= c formatoptions -= r formatoptions -= o
To see the current settings:
Visit https://vim.fandom.com/wiki/Disable_automatic_comment_insertion for more information!
Categories: How-To's , Technology Tags: Auto-Comment , Comment , Comment Insertion , Comments , Disable , howto , Stop , tips , turn off , vim
| No comments
Author:
erics , August 4th, 2019
To prevent vim from added net comments, edit the .vimrc file in your home directory, and add:
autocmd FileType * setlocal formatoptions -= c formatoptions -= r formatoptions -= o
Categories: How-To's , Technology Tags: Auto-Comment , Comment , Disable , disable auto-comment , howto , line , new , new line , new line comment , tips , vim
| No comments
Author:
erics , 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
Categories: How-To's , Technology Tags: Auto-Comment , Autocomment , Comment , howto , tips , vi , vim
| No comments