How To Prevent Vim From Auto-Commenting New Lines

To prevent vim from added net comments, edit the .vimrc file in your home directory, and add:
1 |
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o |
![]() |
To prevent vim from added net comments, edit the .vimrc file in your home directory, and add:
1 |
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o |