aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-19 22:35:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-19 22:35:11 +1200
commit8fc405cc45ff07d64a8cab145e53f6de12b5b7c2 (patch)
tree7fd0936ee9324a352914df763c803b06e2a76c37 /vim/after/indent
parentAdd a word to a comment (diff)
downloaddotfiles-8fc405cc45ff07d64a8cab145e53f6de12b5b7c2.tar.gz
dotfiles-8fc405cc45ff07d64a8cab145e53f6de12b5b7c2.zip
Use hard tabs for editing Vim :help files
Diffstat (limited to 'vim/after/indent')
-rw-r--r--vim/after/indent/help.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/indent/help.vim b/vim/after/indent/help.vim
new file mode 100644
index 00000000..449e3b4a
--- /dev/null
+++ b/vim/after/indent/help.vim
@@ -0,0 +1,6 @@
+" Use hard tabs for Vim help
+setlocal noexpandtab shiftwidth=0 tabstop=8
+if &softtabstop != -1
+ let &softtabstop = &shiftwidth
+endif
+let b:undo_indent .= '|setlocal expandtab< shiftwidth< softtabstop< tabstop<'