1. Josh VanderLinden
  2. vim

Commits

Josh VanderLinden  committed b8ac743

More syntax highlighting updates

  • Participants
  • Parent commits 228884c
  • Branches default

Comments (0)

Files changed (1)

File .vimrc

View file
  • Ignore whitespace
 " autocmd FileType html,htm exe ":silent 1,$!tidy --indent yes -q"
 
 " autocmd FocusLost *.inc,*.php,*.html,*.js,*.css :w
-autocmd BufEnter,BufRead *.html,*.inc,*.phtml,*.php setlocal shiftwidth=2 tabstop=2 syntax=php nolist
+autocmd BufEnter,BufRead *.inc,*.phtml,*.php setlocal shiftwidth=2 tabstop=2 syntax=php nolist
+autocmd BufEnter,BufRead *.html setlocal shiftwidth=2 tabstop=2 syntax=html nolist
+autocmd BufEnter,BufRead *.css setlocal shiftwidth=2 tabstop=2 syntax=css nolist
+autocmd BufEnter,BufRead *.js setlocal shiftwidth=2 tabstop=2 syntax=javascript nolist
 
 " Highlight trailing spaces
 autocmd ColorScheme * highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen