summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-08-16 10:24:53 -0500
committerJesse Luehrs <doy@tozt.net>2011-08-16 10:26:49 -0500
commit993c0dab750eba139c58a310a6cfa3dd7c1fa7a8 (patch)
treefeb881dabbc292c4f3f23a5983af836686c2cd5a /vim
parent1708834d92746016fbcb9ce731ac3c0af368a264 (diff)
downloadconf-993c0dab750eba139c58a310a6cfa3dd7c1fa7a8.tar.gz
conf-993c0dab750eba139c58a310a6cfa3dd7c1fa7a8.zip
better tt2html detection
Diffstat (limited to 'vim')
-rw-r--r--vim/ftdetect/tt2.vim6
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 |