aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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<'