diff options
-rw-r--r-- | ftplugin/gitcommit.vim | 6 | ||||
-rw-r--r-- | vimrc | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim new file mode 100644 index 0000000..fdffb20 --- /dev/null +++ b/ftplugin/gitcommit.vim @@ -0,0 +1,6 @@ +" Git commit message settings + +setlocal expandtab +setlocal tabstop=2 +setlocal softtabstop=2 +setlocal shiftwidth=2 @@ -147,6 +147,7 @@ " http://vim.wikia.com/wiki/Default_filetype#Setting_a_default_filetype " and http://marc.info/?l=vim&m=100254210012793&w=2. Instead the " variable needed to be set directly. +" * Move gitcommit indentation settings from vimrc to ftplugin/gitcommit " @@ -482,15 +483,6 @@ command! CopyModeToggle call CopyModeToggle() " endif -" Indentation rules by file type -augroup filetype_indentation - autocmd! - - " git commit messages - autocmd FileType gitcommit setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2 -augroup END - - " Project Settings " ================ |