From 38bcefdf6e069bdfa7482d0696ace984c6d888bc Mon Sep 17 00:00:00 2001 From: Fabio Pelosin Date: Tue, 15 May 2012 14:55:49 +0200 Subject: [PATCH] Enable spell checking for git commits. Source: http://stackoverflow.com/questions/1691060/vim-set-spell-in-file-git-commit-editmsg --- vim/ftplugin/gitcommit.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 vim/ftplugin/gitcommit.vim diff --git a/vim/ftplugin/gitcommit.vim b/vim/ftplugin/gitcommit.vim new file mode 100644 index 0000000..a7dd4aa --- /dev/null +++ b/vim/ftplugin/gitcommit.vim @@ -0,0 +1,7 @@ +if exists("b:did_ftplugin") + finish +endif + +let b:did_ftplugin = 1 " Don't load twice in one buffer + +setlocal spell