aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-11-27 23:32:52 +0800
committerGuangxiong Lin <[email protected]>2021-11-27 23:32:52 +0800
commit82583f4abf01e5cfda61578fc0ed1c30959da2c8 (patch)
tree6aeaa588b7a8aa062de29748b582be800af07e82 /.vim/plugin
parentfc2b84beb820ff63baacf5c5ff14580a1f98f366 (diff)
downloaddotfiles-82583f4abf01e5cfda61578fc0ed1c30959da2c8.tar.gz
dotfiles-82583f4abf01e5cfda61578fc0ed1c30959da2c8.tar.bz2
dotfiles-82583f4abf01e5cfda61578fc0ed1c30959da2c8.zip
Update fugitive keymap, add gv.vim
Diffstat (limited to '.vim/plugin')
-rw-r--r--.vim/plugin/fugitive.vim7
-rw-r--r--.vim/plugin/init.vim5
2 files changed, 8 insertions, 4 deletions
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 <silent> <leader>gs :tabnew +Git<CR>
+
+nnoremap <leader>gp :G push<space>
+nnoremap <leader>g<space> :G<space>
+nnoremap <leader>gd :Gvdiffsplit<space>
+nnoremap <leader>gl :Gclog %<space>
+xnoremap <leader>gl :Gclog<CR>
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 <silent> <leader>gl :Gclog! -- %<CR>
-nnoremap <silent> <leader>gd :Gdiffsplit <CR>
-nnoremap <silent> <leader>gs :G<CR>
+Plug 'junegunn/gv.vim'
Plug 'easymotion/vim-easymotion'