aboutsummaryrefslogtreecommitdiff
path: root/vim/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-07 01:19:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-07 01:19:13 +1200
commit26a24ab136f196431ba557599d8ad139cb0be3ef (patch)
treee364b5f8cd572336b1076d8313f466872ebf4c93 /vim/indent
parentAdd heredoc support to Vim Perl indent plugin (diff)
downloaddotfiles-26a24ab136f196431ba557599d8ad139cb0be3ef.tar.gz
dotfiles-26a24ab136f196431ba557599d8ad139cb0be3ef.zip
Adjust continued line indent for Vim Perl
Don't add another two spaces if we already did on a previous line; get the "base" indent first.
Diffstat (limited to 'vim/indent')
-rw-r--r--vim/indent/perl.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/indent/perl.vim b/vim/indent/perl.vim
index 604b836b..650dbb08 100644
--- a/vim/indent/perl.vim
+++ b/vim/indent/perl.vim
@@ -99,7 +99,7 @@ function! GetPerlIndent()
" Continued line; add half 'shiftwidth'
elseif l:sw >= 2
- return l:pi + l:sw / 2
+ return l:pi - l:pi % l:sw + l:sw / 2
endif
endfunction