From cc1fa1eecf82219e575013f7cc3b44f124b7d982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 7 Dec 2020 16:54:56 +0100 Subject: [PATCH] Git reset keyboard shortcut --- bundles-init/vim-fugitive.cfg.vim | 1 + bundles-init/vim-which-key.cfg.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/bundles-init/vim-fugitive.cfg.vim b/bundles-init/vim-fugitive.cfg.vim index 43d5820..10d5036 100644 --- a/bundles-init/vim-fugitive.cfg.vim +++ b/bundles-init/vim-fugitive.cfg.vim @@ -3,6 +3,7 @@ nnoremap ga :Git add %:p nnoremap gd :Gdiffsplit nnoremap gs :Git nnoremap gc :Git commit -q +nnoremap gz :Git reset %:p nnoremap gb :Git branch " Note: dangerous commands don't have a . Also commands that need diff --git a/bundles-init/vim-which-key.cfg.vim b/bundles-init/vim-which-key.cfg.vim index 971dccb..3ad595b 100644 --- a/bundles-init/vim-which-key.cfg.vim +++ b/bundles-init/vim-which-key.cfg.vim @@ -46,6 +46,7 @@ let g:which_key_map.g.p = 'pull' let g:which_key_map.g.r = 'rename' let g:which_key_map.g.R = 'remove' let g:which_key_map.g.s = 'status' +let g:which_key_map.g.z = 'unstage' " Help let g:which_key_map.h = { 'name' : '+help' }