diff --git a/vimrc b/vimrc index a28fb4b..963dc35 100644 --- a/vimrc +++ b/vimrc @@ -205,13 +205,17 @@ nnoremap ::w vnoremap p "_dP nnoremap :noh -nnoremap n :NERDTreeToggle -nnoremap g :Grepper -tool git +nnoremap nt :NERDTreeToggle +nnoremap fs :Grepper -tool git nnoremap o :only nnoremap q :qall nnoremap e :%s/\s\+$//g nnoremap s :syntax sync fromstart nnoremap c ::set cursorcolumn! +nnoremap gs ::Gstatus +nnoremap gc ::Gcommit +nnoremap gp ::Gpush +nnoremap gg ::Gpull autocmd FileType json nnoremap f %!json_pp "nnoremap m :vertical resize +5 @@ -222,6 +226,26 @@ autocmd FileType json nnoremap f %!json_pp "nnoremap [ :lprev "nnoremap ] :lnext "vnoremap m c=trim(@") . '=' . trim(system('math ' . shellescape(@"))) +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap + +inoremap +inoremap +inoremap +inoremap +inoremap +inoremap +inoremap + +noremap +noremap +noremap +noremap " iterm2 插入模式时backspace不works set backspace=indent,eol,start