diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-08-16 10:24:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-08-16 10:26:49 -0500 |
commit | 993c0dab750eba139c58a310a6cfa3dd7c1fa7a8 (patch) | |
tree | feb881dabbc292c4f3f23a5983af836686c2cd5a /vim | |
parent | 1708834d92746016fbcb9ce731ac3c0af368a264 (diff) | |
download | conf-993c0dab750eba139c58a310a6cfa3dd7c1fa7a8.tar.gz conf-993c0dab750eba139c58a310a6cfa3dd7c1fa7a8.zip |
better tt2html detection
Diffstat (limited to 'vim')
-rw-r--r-- | vim/ftdetect/tt2.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftdetect/tt2.vim b/vim/ftdetect/tt2.vim index 4b33682..699fa58 100644 --- a/vim/ftdetect/tt2.vim +++ b/vim/ftdetect/tt2.vim @@ -1,8 +1,8 @@ au BufNewFile,BufRead *.tt - \ if ( getline(1) . getline(2) . getline(3) =~ '<\chtml' - \ && getline(1) . getline(2) . getline(3) !~ '<[%?]' ) + \ if ( join(getline(1, 10)) =~ '<\chtml' + \ && join(getline(1, 10)) !~ '<[%?]' ) \ || getline(1) =~ '<!DOCTYPE HTML' - \ || ( getline(1) . getline(2) . getline(3) =~ '<.*>' ) | + \ || ( join(getline(1, 10)) =~ '<.*>' ) | \ setf tt2html | \ else | \ setf tt2 | |