From 7ef4d005e6904fac650efc145fc4121ce50debdd Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Thu, 18 Feb 2021 17:54:41 -0700 Subject: [fix] Make some vim settings local instead of global --- base/vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/base/vimrc b/base/vimrc index db762ef..203cb2d 100644 --- a/base/vimrc +++ b/base/vimrc @@ -269,11 +269,11 @@ au BufNewFile,BufRead * call SetLocalOptions(bufname("%")) " To move elsewhere ====---- au Syntax json normal zR -au BufNewFile,BufRead *.less set filetype=less +au BufNewFile,BufRead *.less setl filetype=less au! BufWritePost $MYVIMRC source $MYVIMRC -au FileType gitcommit set textwidth=72 -au FileType gitcommit set colorcolumn=73 -au! BufRead,BufNewFile gitcommit set spell -au! BufRead,BufNewFile *.md set filetype=markdown -au! BufRead,BufNewFile *.md set spell +au FileType gitcommit setl textwidth=72 +au FileType gitcommit setl colorcolumn=73 +au! BufRead,BufNewFile gitcommit setl spell +au! BufRead,BufNewFile *.md setl filetype=markdown +au! BufRead,BufNewFile *.md setl spell pa! matchit -- cgit v1.2.3-70-g09d2