diff options
author | typebrook <typebrook@gmail.com> | 2020-01-31 15:43:17 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-31 15:43:17 +0800 |
commit | fc0a96ce11b1c82d62ca3714c27e12f78288da1f (patch) | |
tree | a202f9f91f7448948a8223963d8ca793c30e15c7 | |
parent | 4fa39cc191d2a6283ec5dd8455159896115376ea (diff) |
update
-rw-r--r-- | vimrc | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -87,13 +87,16 @@ let g:vim_markdown_folding_disabled = 1 | |||
87 | let g:vim_markdown_conceal = 0 | 87 | let g:vim_markdown_conceal = 0 |
88 | vnoremap <C-K> <ESC>`<i[<ESC>`>la]()<ESC>i | 88 | vnoremap <C-K> <ESC>`<i[<ESC>`>la]()<ESC>i |
89 | 89 | ||
90 | " xml fold | 90 | " shell script |
91 | autocmd FileType sh set shiftwidth=2 | ||
92 | |||
93 | " XML fold | ||
91 | let g:xml_syntax_folding=1 | 94 | let g:xml_syntax_folding=1 |
92 | au FileType xml setlocal foldmethod=syntax | 95 | autocmd FileType xml setlocal foldmethod=syntax |
93 | 96 | ||
94 | " xml fold | 97 | " JSON fold |
95 | let g:json_syntax_folding=1 | 98 | let g:json_syntax_folding=1 |
96 | au FileType json setlocal foldmethod=syntax | 99 | autocmd FileType json setlocal foldmethod=syntax |
97 | 100 | ||
98 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 101 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
99 | " => Settings for Vimwiki | 102 | " => Settings for Vimwiki |
@@ -172,10 +175,10 @@ set hidden | |||
172 | let g:racer_cmd = "~/.cargo/bin/racer" | 175 | let g:racer_cmd = "~/.cargo/bin/racer" |
173 | let g:racer_experimental_completer = 1 | 176 | let g:racer_experimental_completer = 1 |
174 | 177 | ||
175 | au FileType rust nmap gd <Plug>(rust-def) | 178 | autocmd FileType rust nmap gd <Plug>(rust-def) |
176 | au FileType rust nmap gs <Plug>(rust-def-split) | 179 | autocmd FileType rust nmap gs <Plug>(rust-def-split) |
177 | au FileType rust nmap gx <Plug>(rust-def-vertical) | 180 | autocmd FileType rust nmap gx <Plug>(rust-def-vertical) |
178 | au FileType rust nmap <leader>gd <Plug>(rust-doc) | 181 | autocmd FileType rust nmap <leader>gd <Plug>(rust-doc) |
179 | 182 | ||
180 | 183 | ||
181 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 184 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |