aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/git-blamer/autoload
diff options
context:
space:
mode:
authorTeddy Wing2018-03-07 20:39:55 +0100
committerTeddy Wing2018-03-07 20:39:55 +0100
commit319a253ef10513a53c08dab57ab677ae22621a9f (patch)
tree32f345e8dbfa3726cc6edf20f8e04c77add45be0 /bundle/git-blamer/autoload
parent9e8c040bcb01391aa8ef7bb3206eed156c9315bc (diff)
downloaddotvim-319a253ef10513a53c08dab57ab677ae22621a9f.tar.bz2
git-blamer: Remove terminating whitespace
I don't really like these any more.
Diffstat (limited to 'bundle/git-blamer/autoload')
-rw-r--r--bundle/git-blamer/autoload/git_blamer.vim18
1 files changed, 9 insertions, 9 deletions
diff --git a/bundle/git-blamer/autoload/git_blamer.vim b/bundle/git-blamer/autoload/git_blamer.vim
index 83efe4c..c88f05a 100644
--- a/bundle/git-blamer/autoload/git_blamer.vim
+++ b/bundle/git-blamer/autoload/git_blamer.vim
@@ -6,28 +6,28 @@ function! git_blamer#Blame()
let l:line_number = line('.')
let l:buffer_name = shellescape(bufname('%'))
let l:buffer_number = bufnr('%')
-
+
setlocal scrollbind cursorbind
-
+
" Open new window
leftabove vnew
setlocal noswapfile nowrap nolist nobuflisted buftype=nofile bufhidden=wipe
setlocal scrollbind cursorbind
-
- let b:git_blamer_restore = 'call setbufvar(' . l:buffer_number . ', "&scrollbind", 0) |
+
+ let b:git_blamer_restore = 'call setbufvar(' . l:buffer_number . ', "&scrollbind", 0) |
\ call setbufvar(' . l:buffer_number . ', "&cursorbind", 0)'
-
+
" Read in `git blame` output
execute 'read !git blame -w ' . l:buffer_name
-
+
" Delete empty first line
1 delete
-
+
setlocal nomodified nomodifiable
-
+
" Move cursor to position in starting file
call setpos('.', [0, l:line_number, 0, 0])
-
+
" Restore starting file's scrollbind on exit
autocmd BufWinLeave <buffer> execute b:git_blamer_restore
endfunction