aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-05-02 14:38:43 -0400
committerTeddy Wing2014-05-02 14:38:43 -0400
commitcae9397786294391673c6306c1c70a9bab99ea97 (patch)
treeef0dacc89f1e7d40d43bbb00c960a8672cb9fd5c /vimrc
parented071740e882e9d6d2d608c59042d42226b580b8 (diff)
downloaddotvim-cae9397786294391673c6306c1c70a9bab99ea97.tar.bz2
vimrc: set gitcommit files to use 2-space indentation
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 0e9ce19..fafc283 100644
--- a/vimrc
+++ b/vimrc
@@ -98,6 +98,10 @@
" * Change status bar colour from white to green when switching into and
" out of insert mode
"
+" 2014.05.02:
+" * Add augroup for filetype indentation settings
+" * Set gitcommit files to use 2-space indentation
+"
" Pathogen
@@ -397,6 +401,15 @@ augroup filetype_syntax_highlighting
augroup END
+" 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
" ================