From 1b55b99636b4cb239fa6c5f4a62ba820dac4580d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 17 May 2008 17:08:12 +0100 Subject: [PATCH] fire off git commit diff split in ftplugin --- .vim/after/ftplugin/gitcommit.vim | 3 +++ .vimrc | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .vim/after/ftplugin/gitcommit.vim diff --git a/.vim/after/ftplugin/gitcommit.vim b/.vim/after/ftplugin/gitcommit.vim new file mode 100644 index 0000000..bfefe09 --- /dev/null +++ b/.vim/after/ftplugin/gitcommit.vim @@ -0,0 +1,3 @@ +" display the git-diff --cached in window below commit +" assumes nosplitbelow set. Might want to use wincmd p otherwise +DiffGitCached | wincmd J diff --git a/.vimrc b/.vimrc index 369851e..59409c3 100644 --- a/.vimrc +++ b/.vimrc @@ -1448,10 +1448,6 @@ colorscheme madduck autocmd BufNewFile,BufRead /etc/logcheck/*.d*/* set tw=0 autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/*.d*/* set tw=0 -" display the git-diff --cached in window below commit -" assumes nosplitbelow set. Might want to use wincmd p otherwise -autocmd FileType gitcommit DiffGitCached | wincmd J - " jump to last known position in file (:he last-position-jump) autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"zz" | endif -- 2.39.5