aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/after/indent/perl.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/after/indent/perl.vim b/vim/after/indent/perl.vim
new file mode 100644
index 00000000..6f97d979
--- /dev/null
+++ b/vim/after/indent/perl.vim
@@ -0,0 +1,9 @@
+" The stock Perl indenting is decent, but doesn't include an undo variable;
+" this adds one
+if !exists('b:undo_indent')
+ let b:undo_indent = 'unlet! b:did_indent'
+ let b:undo_indent = b:undo_indent . '|setlocal indentexpr< indentkeys<'
+ let b:undo_indent = b:undo_indent . '|unlet! b:indent_use_syntax'
+ let b:undo_indent = b:undo_indent . '|unlet! b:match_skip'
+ let b:undo_indent = b:undo_indent . '|unlet! b:match_words'
+endif