From afb5d623425c2b4378daf8e51efaf2ff997efeb7 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sat, 13 Jun 2020 20:46:06 -0600 Subject: Make folds in JSON files open by default Finally, geez --- base/vim/ftplugin/json.vim | 1 - base/vimrc | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/vim/ftplugin/json.vim b/base/vim/ftplugin/json.vim index 1ae1b99..811edb3 100644 --- a/base/vim/ftplugin/json.vim +++ b/base/vim/ftplugin/json.vim @@ -30,4 +30,3 @@ if has('conceal') endif setlocal foldmethod=syntax -normal zR diff --git a/base/vimrc b/base/vimrc index 9bc3a54..7351a3a 100644 --- a/base/vimrc +++ b/base/vimrc @@ -184,8 +184,8 @@ vnoremap Q gq nnoremap Q gqap "cnoremap w!! %!sudo tee % >/dev/null -cnoremap -cnoremap +cnoremap +cnoremap nnoremap qr :.!qrencode -t UTF8 vnoremap qr !qrencode -t UTF8 @@ -274,4 +274,5 @@ au BufNewFile,BufRead *.less set filetype=less autocmd! BufWritePost $MYVIMRC source $MYVIMRC autocmd! BufRead,BufNewFile *.md set filetype=markdown autocmd! BufRead,BufNewFile *.md set spell +autocmd Syntax json normal zR packadd! matchit -- cgit v1.2.3-70-g09d2