From cae9397786294391673c6306c1c70a9bab99ea97 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 2 May 2014 14:38:43 -0400 Subject: vimrc: set gitcommit files to use 2-space indentation --- vimrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'vimrc') 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 " ================ -- cgit v1.2.3