aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/git-blamer
diff options
context:
space:
mode:
authorTeddy Wing2016-10-26 17:41:55 -0400
committerTeddy Wing2016-10-26 17:41:55 -0400
commit5a90ac916b762bf2f52dfef6c5c6fc4e097ec3f7 (patch)
tree5421a199cf9f6be3dbaf058ee10ec75dcab08b18 /bundle/git-blamer
parent5504e15411b0f682f3415677e65cbf03d6339d50 (diff)
downloaddotvim-5a90ac916b762bf2f52dfef6c5c6fc4e097ec3f7.tar.bz2
git-blamer: Open blame windows `leftabove`
Based on my current Vim settings, splits open to the right (I have `splitright` turned on). This causes the blame window to open to the right of the file in question, which is weird, since normally that metadata appears to the left of the file. Open the Blamer split on the left by default to make the formatting more consistent with the normal `git blame` output.
Diffstat (limited to 'bundle/git-blamer')
-rw-r--r--bundle/git-blamer/autoload/git_blamer.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/git-blamer/autoload/git_blamer.vim b/bundle/git-blamer/autoload/git_blamer.vim
index cfd58f4..65a1c24 100644
--- a/bundle/git-blamer/autoload/git_blamer.vim
+++ b/bundle/git-blamer/autoload/git_blamer.vim
@@ -12,7 +12,7 @@ function! git_blamer#Blame()
\ call setwinvar(' . l:window_number . ', "&cursorbind", 0)'
" Open new window
- vnew
+ leftabove vnew
setlocal noswapfile nowrap nolist nobuflisted buftype=nofile bufhidden=wipe
setlocal scrollbind cursorbind