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:
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 |
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
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Copyright © 2005-2025 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress