My goal is to get syntax highlighting for files using extension *.tt
and so far it's been a frustrating "no" every time.
I found the vim-perl
plugin. Installed using legacy method 'make install' and nothing happened. Tried using Pathogen as well.
The files I'm trying to enable syntax highlighting for have extension *.tt
and I notice vim-perl has tt2.vim
files.
I'm not an expert at VIM, but I'm pretty sure I've installed it correctly. Assuming this much, should changing any of vim-perl's files named tt2.*
to tt.*
work (which I've tried, and it doesn't)?
What gives?
Create a file at ~/.vim/ftdetect/tt.vim
that contains the following.
autocmd BufNewFile,BufRead *.tt setf tt2
This should associate all *.tt
files with tt2
filetype.