aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/gitconfig.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 23:00:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 23:00:25 +1200
commit08f1b6525c50bd88a45a310b0fcac3f9ec58dd74 (patch)
treefdf87dfe1f22a55e0ad272df955db73a96e9b6ed /vim/after/indent/gitconfig.vim
parentMerge branch 'release/v6.1.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-08f1b6525c50bd88a45a310b0fcac3f9ec58dd74.tar.gz
dotfiles-08f1b6525c50bd88a45a310b0fcac3f9ec58dd74.zip
Merge branch 'release/v6.2.0'v6.2.0
* release/v6.2.0: (22 commits) Spruce up CSV and TSV Vim filetype scripts Add explanatory comment on Vim indent ftplugin Remove unneeded password filetype Use tabs for Git configuration files Fix layout of vim-keep-position submodule config Replace and refactor Vim paste plugins Move autocmd definitions out of augroup block Refactor colorscheme select with cursorline hooks Restore Git diff.algorithm to 'patience' Tweak a comment about jetpack mapping Add Vim leader maps for :command and :function Add -bar attribute to :AddLocalSpellFile command Add missing b:undo_ftplugin commands for ft=mail Remove resolved issue from ISSUES.md list Wrap mail quote cleanup in command-func Move to body text correctly for start guesser Wrap mail starting point guesser in command-func Use more idiomatic check for empty string Ensure we're in body text before breaking quotes ...
Diffstat (limited to 'vim/after/indent/gitconfig.vim')
-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<'