X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ca89775db49fd0376f920e77487e0485e98e787f..03e579243f0a60f763bbc40ab5cfa7cd964b719e:/vim/vimrc?ds=inline diff --git a/vim/vimrc b/vim/vimrc index 17e2a1e..81713c7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -330,7 +330,7 @@ cnoremap cnoremap " close all folds open fold in cursor -nnoremap zx zMzxzz15 +nnoremap zx zMzxzt " edit vimrc in new tab nmap ev :tabedit $MYVIMRC:lcd %:p:h @@ -410,6 +410,7 @@ nnoremap gs :Gstatus nnoremap gd :Gdiff nnoremap gc :tab Gcommit -v nnoremap ga :Gwrite +nnoremap gb :Gblame " NERDTree {{{2 " open/close NERDTree with \e @@ -460,7 +461,7 @@ nnoremap jd :YcmCompleter GoTo " vim-easy-align {{{2 " start interactive EasyAlign in visual mode -vnoremap (EasyAlign) +vmap (EasyAlign) " vim-json {{{2 let g:vim_json_syntax_conceal = 0 @@ -511,19 +512,3 @@ nnoremap s :call ToggleSpell() nnoremap S :call SwitchSpell() " fix spelling with first choice nnoremap f 1z= - -" Toggle line numbers {{{2 -function! g:ToggleNumber() - if !exists("b:relanum") - let b:relanum=1 - endif - if &l:number - let b:relanum = &relativenumber - setlocal nonumber norelativenumber - else - let &l:relativenumber = b:relanum - setlocal number - endif -endfunction -nnoremap n :call g:ToggleNumber() -nnoremap N :setlocal relativenumber!