diff --git a/.vim/vimrc b/.vim/vimrc index 88d14c9..f627a1c 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -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)