X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=vim%2Fftplugin%2Fgitcommit.vim;h=7de4423f061b678fb2a8bab9d3593c7fde25d6a4;hb=ca87b0d42293241210547baa86ae224d28e8714b;hp=86880fab2bef8c76c566773430d67878b52e7a51;hpb=5923f706617b966f114656c78bd60108d4ab1dde;p=~madcoder%2Fdotfiles.git diff --git a/vim/ftplugin/gitcommit.vim b/vim/ftplugin/gitcommit.vim index 86880fa..7de4423 100644 --- a/vim/ftplugin/gitcommit.vim +++ b/vim/ftplugin/gitcommit.vim @@ -57,7 +57,7 @@ noremap ghd :call Git_diff_windows(0, 0) noremap gvd :call Git_diff_windows(1, 0) if !exists("g:git_diff_opts") - let g:git_diff_opts = "-C -C" + let g:git_diff_opts = "-B -C -M" endif if exists("g:git_diff_spawn_mode") if g:git_diff_spawn_mode == 1 @@ -67,4 +67,15 @@ if exists("g:git_diff_spawn_mode") endif endif +func Eatchar(pat) + let c = nr2char(getchar(0)) + return (c =~ a:pat) ? '' : c +endfunc + +ia cc: Cc-Redmine: yes=Eatchar('\s') +ia v: Version: +ia sob: Signed-off-by: +ia ack: Acked-by: +ia r: Reviewed-by: + " }}}