diff options
author | Teddy Wing | 2018-03-07 21:11:51 +0100 |
---|---|---|
committer | Teddy Wing | 2018-03-07 21:11:51 +0100 |
commit | 17acd727bbb97950536da0963f0b9a2af449ee13 (patch) | |
tree | 7e14e3f71e8b49e8f5f270c336e271850cb50e11 | |
parent | 56440acd5b4dbd5d871021088ef4c2080cda346d (diff) | |
download | dotvim-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.
-rw-r--r-- | bundle/git-blamer/autoload/git_blamer.vim | 2 |
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 |