Vim - Activiting html snippets on php files
Posted
by Alfredo Palhares
on Stack Overflow
See other posts from Stack Overflow
or by Alfredo Palhares
Published on 2010-06-09T18:09:52Z
Indexed on
2010/06/09
18:12 UTC
Read the original article
Hit count: 309
Hello i am using vim and snipMate i very times i need to name the html files to php, just because 1 or 2 lines of code.
I every time i create an php file no introduce html and i have to activate the html snippets manually with the command
set ft=php.html
I intend to activate it automatically in this this line on my vimrc
autocmd BufREad, BufNewFile *.php set ft=php.html
Is this correct? I am missing anything or is something wrong?
Thanks already.
© Stack Overflow or respective owner