diff options
Diffstat (limited to 'vim/after/indent/php.vim')
-rw-r--r-- | vim/after/indent/php.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/after/indent/php.vim b/vim/after/indent/php.vim new file mode 100644 index 00000000..ba6dfdeb --- /dev/null +++ b/vim/after/indent/php.vim @@ -0,0 +1,8 @@ +" Use four spaces for indentation +setlocal expandtab +setlocal shiftwidth=4 +let b:undo_ftplugin .= '|setlocal expandtab< shiftwidth<' +if &l:softtabstop != -1 + let &l:softtabstop = &l:shiftwidth + let b:undo_ftplugin .= '|setlocal softtabstop<' +endif |