aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/gitconfig.vim
blob: 943e78eab4006e482fb9893be6e4753effec76d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Use tabs for indent in Git config files, rather than fighting with the
" frontend tool
setlocal noexpandtab
let b:undo_indent .= '|setlocal expandtab<'
if v:version > 703
      \ || v:version == 703 && has('patch629')
  setlocal shiftwidth=0
else
  let &l:shiftwidth = &l:tabstop
endif
let b:undo_indent .= '|setlocal shiftwidth<'
if &softtabstop != -1
  let &l:softtabstop = &l:shiftwidth
  let b:undo_indent .= '|setlocal softtabstop<'
endif