diff --git a/vimrc b/vimrc index 5e3dc1f..a4f7f99 100644 --- a/vimrc +++ b/vimrc @@ -94,7 +94,7 @@ nnoremap wl viwu nnoremap viwU nnoremap viwu -nmap cw y/ +" nmap cw y/ nmap 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 rn (coc-rename) " Remap for format selected region - xmap f (coc-format-selected) - nmap f (coc-format-selected) + " xmap f (coc-format-selected) + " nmap f (coc-format-selected) augroup mygroup autocmd!