aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/indent/help.vim')
-rw-r--r--vim/indent/help.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/indent/help.vim b/vim/indent/help.vim
new file mode 100644
index 00000000..1edf64fb
--- /dev/null
+++ b/vim/indent/help.vim
@@ -0,0 +1,12 @@
+" Only do this when not done yet for this buffer
+if exists('b:did_indent')
+ finish
+endif
+let b:did_indent = 1
+
+" Use hard tabs for editing Vim help files
+setlocal noexpandtab shiftwidth=0 tabstop=8
+if &softtabstop != -1
+ let &softtabstop = &shiftwidth
+endif
+let b:undo_indent = 'setlocal expandtab< shiftwidth< softtabstop< tabstop<'