From 7bfc2ae02ce2049e464837881df1afc223f661ba Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 22:23:22 +1200 Subject: Use tabs for Git configuration files The frontend tools use tabs, and it's probably best not to fight them on it. --- vim/after/indent/gitconfig.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vim/after/indent/gitconfig.vim (limited to 'vim/after') 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<' -- cgit v1.2.3