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-L> viwu
|
||||
|
||||
nmap <leader>cw y/ <CR>
|
||||
" nmap <leader>cw y/ <CR>
|
||||
nmap <leader>wp 0v$gq
|
||||
|
||||
set ignorecase smartcase
|
||||
@@ -106,11 +106,11 @@ set wildignore+=deps/*,node_modules/*,*.sw?
|
||||
|
||||
" color desert
|
||||
colorscheme dracula
|
||||
if has("AirlineTheme")
|
||||
if has("gui_running")
|
||||
let g:airline_theme="papercolor"
|
||||
endif
|
||||
endif
|
||||
" if has("AirlineTheme")
|
||||
" if has("gui_running")
|
||||
" let g:airline_theme="papercolor"
|
||||
" endif
|
||||
" endif
|
||||
|
||||
" enable syntax highlighting if it is supported
|
||||
if has("syntax")
|
||||
@@ -177,6 +177,14 @@ augroup cprog
|
||||
call TabSize(4)
|
||||
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:
|
||||
au BufNewFile,BufRead .mutt.* set ft=muttrc
|
||||
|
||||
@@ -523,8 +531,8 @@ if version >= 800
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
|
||||
" Remap for format selected region
|
||||
xmap <leader>f <Plug>(coc-format-selected)
|
||||
nmap <leader>f <Plug>(coc-format-selected)
|
||||
" xmap <leader>f <Plug>(coc-format-selected)
|
||||
" nmap <leader>f <Plug>(coc-format-selected)
|
||||
|
||||
augroup mygroup
|
||||
autocmd!
|
||||
|
||||
Reference in New Issue
Block a user