aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/php.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/indent/php.vim')
-rw-r--r--vim/indent/php.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/indent/php.vim b/vim/indent/php.vim
index d0fb1f8f..9e084f24 100644
--- a/vim/indent/php.vim
+++ b/vim/indent/php.vim
@@ -2,3 +2,10 @@
" to stop it processing its ridiculous expression-based indenting that never
" seems to do what I want. Just plain autoindent is fine.
let b:did_indent = 1
+
+" Explicitly set indent level; this matches the global default, but it's tidy
+" to enforce it in case we changed from a filetype with different value (e.g.
+" VimL)
+setlocal shiftwidth=4
+setlocal softtabstop=4
+setlocal tabstop=4