vim: enable XML folding; unmap ' f' from COC
This commit is contained in:
24
vimrc
24
vimrc
@@ -94,7 +94,7 @@ nnoremap <leader>wl viwu
|
|||||||
nnoremap <C-U> viwU
|
nnoremap <C-U> viwU
|
||||||
nnoremap <C-L> viwu
|
nnoremap <C-L> viwu
|
||||||
|
|
||||||
nmap <leader>cw y/ <CR>
|
" nmap <leader>cw y/ <CR>
|
||||||
nmap <leader>wp 0v$gq
|
nmap <leader>wp 0v$gq
|
||||||
|
|
||||||
set ignorecase smartcase
|
set ignorecase smartcase
|
||||||
@@ -106,11 +106,11 @@ set wildignore+=deps/*,node_modules/*,*.sw?
|
|||||||
|
|
||||||
" color desert
|
" color desert
|
||||||
colorscheme dracula
|
colorscheme dracula
|
||||||
if has("AirlineTheme")
|
" if has("AirlineTheme")
|
||||||
if has("gui_running")
|
" if has("gui_running")
|
||||||
let g:airline_theme="papercolor"
|
" let g:airline_theme="papercolor"
|
||||||
endif
|
" endif
|
||||||
endif
|
" endif
|
||||||
|
|
||||||
" enable syntax highlighting if it is supported
|
" enable syntax highlighting if it is supported
|
||||||
if has("syntax")
|
if has("syntax")
|
||||||
@@ -177,6 +177,14 @@ augroup cprog
|
|||||||
call TabSize(4)
|
call TabSize(4)
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
augroup xml
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType xml let g:xml_syntax_folding=1
|
||||||
|
autocmd FileType xml setlocal foldmethod=syntax
|
||||||
|
autocmd FileType xml :syntax on
|
||||||
|
autocmd FileType xml :%foldopen!
|
||||||
|
augroup END
|
||||||
|
|
||||||
" Apply the muttrc colouring to mutt setup files:
|
" Apply the muttrc colouring to mutt setup files:
|
||||||
au BufNewFile,BufRead .mutt.* set ft=muttrc
|
au BufNewFile,BufRead .mutt.* set ft=muttrc
|
||||||
|
|
||||||
@@ -523,8 +531,8 @@ if version >= 800
|
|||||||
nmap <leader>rn <Plug>(coc-rename)
|
nmap <leader>rn <Plug>(coc-rename)
|
||||||
|
|
||||||
" Remap for format selected region
|
" Remap for format selected region
|
||||||
xmap <leader>f <Plug>(coc-format-selected)
|
" xmap <leader>f <Plug>(coc-format-selected)
|
||||||
nmap <leader>f <Plug>(coc-format-selected)
|
" nmap <leader>f <Plug>(coc-format-selected)
|
||||||
|
|
||||||
augroup mygroup
|
augroup mygroup
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|||||||
Reference in New Issue
Block a user