diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-29 00:09:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-29 00:09:16 +1300 |
commit | ffc11a076b7bb0ce7ac936085a904eb35603fdac (patch) | |
tree | e7c40d63bc955bfb3fc4979b73d630edfd398df1 /vim/after/indent | |
parent | Merge branch 'hotfix/v1.77.1' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-ffc11a076b7bb0ce7ac936085a904eb35603fdac.tar.gz dotfiles-ffc11a076b7bb0ce7ac936085a904eb35603fdac.zip |
Merge branch 'release/v1.78.0'v1.78.0
* release/v1.78.0:
Bump VERSION
Correct indentation in a few vim/after scripts
Move b:undo_ftplugin unsets for C inline with sets
Add config file for mpv
Use full "mouse" for xset(1) call in ~/.xinitrc
Remove vim-tiny workaround for 'undodir' setting
Define b:undo_indent for Perl buffers
Set missing b:undo_indent instructions for AWK
Undo shell script dialect flags from filetype.vim
Code-format word in TABS.md
Remove a lot of alignment spacing
Diffstat (limited to 'vim/after/indent')
-rw-r--r-- | vim/after/indent/awk.vim | 7 | ||||
-rw-r--r-- | vim/after/indent/perl.vim | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/vim/after/indent/awk.vim b/vim/after/indent/awk.vim new file mode 100644 index 00000000..fc848d2a --- /dev/null +++ b/vim/after/indent/awk.vim @@ -0,0 +1,7 @@ +" The stock AWK indenting is decent, but doesn't include an undo variable; +" this adds one, clearing away the sole global function too. +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 . '|delfunction! GetAwkIndent' +endif 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 |