Skip to content

Instantly share code, notes, and snippets.

@leejo
Created August 24, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leejo/7f1c87c37194a2b964218a05de8e79f2 to your computer and use it in GitHub Desktop.
Save leejo/7f1c87c37194a2b964218a05de8e79f2 to your computer and use it in GitHub Desktop.
split commit diff in commit message
if match( bufname(1),'COMMIT_EDITMSG' ) != -1
:silent !git diff --cached >/tmp/commit.diff
:silent :vsplit /tmp/commit.diff
:wincmd l
:wincmd H
:set spell
:set ft=gitcommit
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment