aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/php.vim
blob: 7747d77e35801fa6df0a88920fd0c3436e3edfb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
" Only do this when not done yet for this buffer
if exists('b:did_indent')
  finish
endif
let b:did_indent = 1

" 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<'