From fc0a96ce11b1c82d62ca3714c27e12f78288da1f Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 31 Jan 2020 15:43:17 +0800 Subject: update --- vimrc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index edf1f61..ecb08d8 100644 --- a/vimrc +++ b/vimrc @@ -87,13 +87,16 @@ let g:vim_markdown_folding_disabled = 1 let g:vim_markdown_conceal = 0 vnoremap ``>la]()i -" xml fold +" shell script +autocmd FileType sh set shiftwidth=2 + +" XML fold let g:xml_syntax_folding=1 -au FileType xml setlocal foldmethod=syntax +autocmd FileType xml setlocal foldmethod=syntax -" xml fold +" JSON fold let g:json_syntax_folding=1 -au FileType json setlocal foldmethod=syntax +autocmd FileType json setlocal foldmethod=syntax """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Settings for Vimwiki @@ -172,10 +175,10 @@ set hidden let g:racer_cmd = "~/.cargo/bin/racer" let g:racer_experimental_completer = 1 -au FileType rust nmap gd (rust-def) -au FileType rust nmap gs (rust-def-split) -au FileType rust nmap gx (rust-def-vertical) -au FileType rust nmap gd (rust-doc) +autocmd FileType rust nmap gd (rust-def) +autocmd FileType rust nmap gs (rust-def-split) +autocmd FileType rust nmap gx (rust-def-vertical) +autocmd FileType rust nmap gd (rust-doc) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3-70-g09d2