diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-06-26 11:56:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-06-26 11:56:25 -0500 |
commit | 675befb50a56936573ddcbccc5f3bcd6be53b941 (patch) | |
tree | fe455378097c8eccb0a7052d855b6d3a11f58065 /vim/ftdetect | |
parent | 44ddf3a0bcc86c5adf9b1e7f1ba6dc48b2af978e (diff) | |
download | conf-675befb50a56936573ddcbccc5f3bcd6be53b941.tar.gz conf-675befb50a56936573ddcbccc5f3bcd6be53b941.zip |
tt syntax files for vim
Diffstat (limited to 'vim/ftdetect')
-rw-r--r-- | vim/ftdetect/tt2.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/ftdetect/tt2.vim b/vim/ftdetect/tt2.vim new file mode 100644 index 0000000..4b33682 --- /dev/null +++ b/vim/ftdetect/tt2.vim @@ -0,0 +1,9 @@ +au BufNewFile,BufRead *.tt + \ if ( getline(1) . getline(2) . getline(3) =~ '<\chtml' + \ && getline(1) . getline(2) . getline(3) !~ '<[%?]' ) + \ || getline(1) =~ '<!DOCTYPE HTML' + \ || ( getline(1) . getline(2) . getline(3) =~ '<.*>' ) | + \ setf tt2html | + \ else | + \ setf tt2 | + \ endif |