diff options
-rw-r--r-- | vim/.vimrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -11,6 +11,7 @@ let maplocalleader = "," "" Plugins {{{1 call plug#begin('~/.vim/plugged') +Plug 'andymass/vim-matchup' Plug 'PotatoesMaster/i3-vim-syntax' Plug 'SirVer/ultisnips' Plug 'airblade/vim-gitgutter' @@ -321,8 +322,9 @@ nnoremap \h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<cr> nnoremap Y y$ " Formatting -nnoremap <Leader>fw :%s/\s\+$//<cr> -nnoremap <Leader>ft :%s/^ \+//g<cr> +nnoremap <Leader>fw m`:silent! keeppattern %s/\s\+$//<cr>``:update<cr> +nnoremap <Leader>ft m`:silent! keeppattern %s/^ \+//g<cr>``:update<cr> +nmap <Leader>ff <Leader>fw<Leader>ft " Swap <c-p>/<c-n> and <up>/<down> cnoremap <c-p> <up> @@ -331,7 +333,7 @@ cnoremap <up> <c-p> cnoremap <down> <c-n> " Alternate file -nnoremap <bs> +no remap <bs> " Buffers nnoremap + :Buffers<cr> @@ -433,6 +435,8 @@ catch endtry endif +let g:matchup_override_vimtex = 1 + " Tests {{{1 let g:ripple_repls = { \ "python": { |