Simon ([personal profile] swaldman) wrote in [site community profile] dw_dev2012-12-02 09:05 pm
Entry tags:

vim syntax highlighting for TT

If you use vim and you are editing TT files, and you don't have syntax highlighting set up, here's how to do it:

Grab this file and save it to ~/.vim/syntax/

One way to do that would be:
wget https://raw.github.com/vim-perl/vim-perl/master/syntax/tt2.vim ~/.vim/syntax/


Then add the following to your ~/.vimrc file:

"syntax highlighting for TT
au BufNewFile,BufRead *.tt setf tt2
:let b:tt2_syn_tags = '\[% %] <!-- -->'


Now everything should be much more readable!

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org