How do I tell Vim to ignore certain "second extensions"? -
e.g. foo.php.tpl should highlighted php, foo.js.erb javascript, foo.py.tmp python...
try autocmd bufenter set filetype. these had better added in vim/vimfiles/filetype.vim inside augroup
autocmd bufenter *.php.tpl set filetype=php autocmd bufenter *.js.erb set filetype=javascript autocmd bufenter *.py.tmp set filetype=python
Comments
Post a Comment