문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top