aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 22:23:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 22:42:29 +1200
commit7bfc2ae02ce2049e464837881df1afc223f661ba (patch)
tree282c111f9263c447e571637242dfc7935a8385ca /vim/after/indent
parentFix layout of vim-keep-position submodule config (diff)
downloaddotfiles-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/indent')
-rw-r--r--vim/after/indent/gitconfig.vim6
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<'