aboutsummaryrefslogtreecommitdiff
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
parent06a4c3e1c870cf37ef35c4d528fd23c66d5ca260 (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.
-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