[ic] syntax highlighting in templates (vi) HowTo

Paul Jordan paul at gishnetwork.com
Tue Sep 27 13:34:30 UTC 2011


For those of you who use VI and find that extension-less files such as 
interchange templates and variables don't activate syntax highlighting, here 
is the trick hinted to me by Peter Ajamian (who I don't want to imply uses 
VI himself).

Within the first five lines of the file, put:

[comment]
// vim: filetype=html
[/comment]


Best,

Paul 




More information about the interchange-users mailing list