From 82583f4abf01e5cfda61578fc0ed1c30959da2c8 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 27 Nov 2021 23:32:52 +0800 Subject: Update fugitive keymap, add gv.vim --- .vim/plugin/fugitive.vim | 7 +++++++ .vim/plugin/init.vim | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .vim/plugin/fugitive.vim (limited to '.vim/plugin') diff --git a/.vim/plugin/fugitive.vim b/.vim/plugin/fugitive.vim new file mode 100644 index 0000000..f3a67bb --- /dev/null +++ b/.vim/plugin/fugitive.vim @@ -0,0 +1,7 @@ +nnoremap gs :tabnew +Git + +nnoremap gp :G push +nnoremap g :G +nnoremap gd :Gvdiffsplit +nnoremap gl :Gclog % +xnoremap gl :Gclog diff --git a/.vim/plugin/init.vim b/.vim/plugin/init.vim index f572da9..6ecd7cd 100644 --- a/.vim/plugin/init.vim +++ b/.vim/plugin/init.vim @@ -49,10 +49,7 @@ Plug 'vim-airline/vim-airline-themes' let g:airline#extensions#tabline#enabled = 1 Plug 'tpope/vim-fugitive' - -nnoremap gl :Gclog! -- % -nnoremap gd :Gdiffsplit -nnoremap gs :G +Plug 'junegunn/gv.vim' Plug 'easymotion/vim-easymotion' -- cgit v1.2.3