summaryrefslogtreecommitdiff
path: root/runtime/indent/ishd.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/ishd.vim')
-rw-r--r--runtime/indent/ishd.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/indent/ishd.vim b/runtime/indent/ishd.vim
index 9b4d7ff0d..f55f7dc79 100644
--- a/runtime/indent/ishd.vim
+++ b/runtime/indent/ishd.vim
@@ -8,11 +8,14 @@ if exists("b:did_indent")
endif
let b:did_indent = 1
+setlocal autoindent
setlocal indentexpr=GetIshdIndent(v:lnum)
setlocal indentkeys&
setlocal indentkeys+==else,=elseif,=endif,=end,=begin,<:>
" setlocal indentkeys-=0#
+let b:undo_indent = "setl ai< indentexpr< indentkeys<"
+
" Only define the function once.
if exists("*GetIshdIndent")
finish