summaryrefslogtreecommitdiffstats
path: root/vim/ftdetect
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-06-26 11:56:25 -0500
committerJesse Luehrs <doy@tozt.net>2010-06-26 11:56:25 -0500
commit675befb50a56936573ddcbccc5f3bcd6be53b941 (patch)
treefe455378097c8eccb0a7052d855b6d3a11f58065 /vim/ftdetect
parent44ddf3a0bcc86c5adf9b1e7f1ba6dc48b2af978e (diff)
downloadconf-675befb50a56936573ddcbccc5f3bcd6be53b941.tar.gz
conf-675befb50a56936573ddcbccc5f3bcd6be53b941.zip
tt syntax files for vim
Diffstat (limited to 'vim/ftdetect')
-rw-r--r--vim/ftdetect/tt2.vim9
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