aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-07 01:12:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-07 01:12:09 +1200
commit7edf55dfc061bddef3c8242531ed7f3dcbd91fb7 (patch)
treed79f5b5194107e657d261cc35af446f95d2a798c
parent579cf9aba14bcf67b4237470104dafc64af9054a (diff)
downloaddotfiles-7edf55dfc061bddef3c8242531ed7f3dcbd91fb7.tar.gz
dotfiles-7edf55dfc061bddef3c8242531ed7f3dcbd91fb7.zip
Rearrange settings in Vim Perl indent script
The version of this indent script bundled with Vim sets the 'indentexpr' and 'indentkeys' options before the GetPerlIndent() function; may as well follow that pattern.
-rw-r--r--vim/indent/perl.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/indent/perl.vim b/vim/indent/perl.vim
index 43137e9c..35270e2c 100644
--- a/vim/indent/perl.vim
+++ b/vim/indent/perl.vim
@@ -6,6 +6,10 @@ if exists('b:did_indent') || &compatible
endif
let b:did_indent = 1
+" Indent settings
+setlocal indentexpr=GetPerlIndent()
+setlocal indentkeys=o,O,0},0),0]
+
" Define indent function
function! GetPerlIndent()
@@ -63,10 +67,6 @@ function! GetPerlIndent()
endfunction
-" Indent settings
-setlocal indentexpr=GetPerlIndent()
-setlocal indentkeys+=0},0),0]
-
" How to undo all of that
let b:undo_indent = '|setlocal indentexpr<'
\ . '|setlocal indentkeys<'