aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/php.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 00:51:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 00:51:23 +1200
commitd115ba06a04b0772246da35af8e9dad87933a0d1 (patch)
tree9ef9586b95aef46781ae656372330de79cb3cb9c /vim/indent/php.vim
parentRefactor ftplugins into single files (diff)
downloaddotfiles-d115ba06a04b0772246da35af8e9dad87933a0d1.tar.gz
dotfiles-d115ba06a04b0772246da35af8e9dad87933a0d1.zip
Review vim/ftplugin and vim/indent files
Diffstat (limited to 'vim/indent/php.vim')
-rw-r--r--vim/indent/php.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/indent/php.vim b/vim/indent/php.vim
index 6a61f105..7747d77e 100644
--- a/vim/indent/php.vim
+++ b/vim/indent/php.vim
@@ -1,10 +1,10 @@
-" Replace Vim's stock PHP indent rules. They're very complicated and don't
-" work in a predictable way.
+" Only do this when not done yet for this buffer
if exists('b:did_indent')
finish
endif
let b:did_indent = 1
-" Easier just to use 'autoindent'; not perfect, but predictable.
+" Replace Vim's stock PHP indent rules. They're very complicated and don't
+" work in a predictable way. Just use 'autoindent'.
setlocal autoindent
let b:undo_indent = 'setlocal autoindent<'