aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/git-blamer/autoload/git_blamer.vim
diff options
context:
space:
mode:
authorTeddy Wing2018-03-07 21:11:51 +0100
committerTeddy Wing2018-03-07 21:11:51 +0100
commit17acd727bbb97950536da0963f0b9a2af449ee13 (patch)
tree7e14e3f71e8b49e8f5f270c336e271850cb50e11 /bundle/git-blamer/autoload/git_blamer.vim
parent56440acd5b4dbd5d871021088ef4c2080cda346d (diff)
downloaddotvim-17acd727bbb97950536da0963f0b9a2af449ee13.tar.bz2
git-blamer: Add `q` mapping to quit window
Makes it just a bit easier to close the GitBlamer window. Since we shouldn't need macros in this panel it should be fine.
Diffstat (limited to 'bundle/git-blamer/autoload/git_blamer.vim')
-rw-r--r--bundle/git-blamer/autoload/git_blamer.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundle/git-blamer/autoload/git_blamer.vim b/bundle/git-blamer/autoload/git_blamer.vim
index cafb332..55c4dbe 100644
--- a/bundle/git-blamer/autoload/git_blamer.vim
+++ b/bundle/git-blamer/autoload/git_blamer.vim
@@ -33,6 +33,8 @@ function! git_blamer#Blame()
setlocal scrollbind cursorbind
syncbind
+ nnoremap <buffer> q :q<CR>
+
" Restore starting file's scrollbind on exit
autocmd BufWinLeave <buffer> execute b:git_blamer_restore
endfunction