vimrc: no autocomments

This commit is contained in:
surtur 2022-08-09 17:43:11 +02:00
parent 359a41642f
commit 7c5b576eb1
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -577,6 +577,11 @@ au BufNewFile,BufRead *.cshtml
\ setlocal ft=csh tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab autoindent
\ textwidth=79 fileformat=unix conceallevel=0
" no autocomments, for example when entering insert mode above or below a
" commented line
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
augroup line_too_long
autocmd!
autocmd winEnter,BufEnter * call clearmatches() | call matchadd('ColorColumn', '\%>80v', 100)