diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-25 02:30:12 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-25 02:31:04 +1300 |
commit | 9c99918394b395c81edfd29f068e6ce830631977 (patch) | |
tree | 52ec729d443988752b5d4de5854248170a270ac7 /vim/after/indent/perl.vim | |
parent | Set missing b:undo_indent instructions for AWK (diff) | |
download | dotfiles-9c99918394b395c81edfd29f068e6ce830631977.tar.gz dotfiles-9c99918394b395c81edfd29f068e6ce830631977.zip |
Define b:undo_indent for Perl buffers
This should probably be pushed upstream.
Diffstat (limited to 'vim/after/indent/perl.vim')
-rw-r--r-- | vim/after/indent/perl.vim | 9 |
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 |