diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 22:23:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 22:42:29 +1200 |
commit | 7bfc2ae02ce2049e464837881df1afc223f661ba (patch) | |
tree | 282c111f9263c447e571637242dfc7935a8385ca /vim/after | |
parent | Fix layout of vim-keep-position submodule config (diff) | |
download | dotfiles-7bfc2ae02ce2049e464837881df1afc223f661ba.tar.gz dotfiles-7bfc2ae02ce2049e464837881df1afc223f661ba.zip |
Use tabs for Git configuration files
The frontend tools use tabs, and it's probably best not to fight them on
it.
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/indent/gitconfig.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/indent/gitconfig.vim b/vim/after/indent/gitconfig.vim new file mode 100644 index 00000000..16a948ab --- /dev/null +++ b/vim/after/indent/gitconfig.vim @@ -0,0 +1,6 @@ +" Use tabs for indent in Git config files, rather than fighting with the +" frontend tool +setlocal noexpandtab +setlocal softtabstop=0 +let &shiftwidth = &tabstop +let b:undo_indent .= '|setlocal expandtab< softtabstop< shiftwidth<' |