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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -