Permalink
Browse files

Use 4 space indent for php files.

  • Loading branch information...
1 parent a8b4917 commit b3df132ac8b5b641504b880b50abd1bb82ffed71 @AlexParamonov committed May 14, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 .vimrc
View
3 .vimrc
@@ -151,6 +151,9 @@ if has("autocmd")
" Remove trailing whitespaces on save
" autocmd FileType c,cpp,python,ruby,java autocmd BufWritePre <buffer> :%s/\s\+$//e
autocmd FileType c,cpp,python,ruby,php,java autocmd BufWritePre <buffer> :call <SID>StripTrailingWhitespaces()
+
+ " Use 4 spaces in php files
+ autocmd FileType php setlocal shiftwidth=4 tabstop=4 softtabstop=4
endif
" Highlight characters in column >80

0 comments on commit b3df132

Please sign in to comment.