Commits

Josh VanderLinden  committed e1f6efa Merge

Adding some magic for various file types

  • Participants
  • Parent commits 848be9d, b8ac743

Comments (0)

Files changed (1)

 " 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