diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 0610ded..9718a8d 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -153,9 +153,10 @@ nmap grc :let subject=system('git show -s --date=short --pretty="format: nmap gso :r!git config --get user.name:r!git config --get user.emailI<A>kJISigned-off-by: " Add, stash or checkout the current file -nmap ga !git add -- % -nmap gs !git stash -- % -nmap gu !git checkout -- % +" TODO: Conflict with gf +"nmap gfa !git add -- % +"nmap gfs !git stash -- % +"nmap gfu !git checkout -- % if exists('g:loaded_fugitive') " Interactive `git status` @@ -176,15 +177,12 @@ else endif if exists('g:loaded_gitgutter') - " Add `g` prefix to hunk bindings - " Mnemonic: "git hunk " - nmap gha (GitGutterStageHunk) - " TODO: nmap ghs (GitGutterStashHunk) - nmap ghu (GitGutterUndoHunk) - nmap ghp (GitGutterPreviewHunk) - - " StageHunk can be used for single lines. Mnemonic w/o `h`unk + " Mnemonic: "git " + nmap ga (GitGutterStageHunk) xmap ga (GitGutterStageHunk) + " TODO: nmap gs (GitGutterStashHunk) + nmap gu (GitGutterUndoHunk) + nmap gp (GitGutterPreviewHunk) " Add hunk/h version to textobject bindings that use `c` (for `change I " presume?) (e.g. ic -> ih)