" Vim completion script " Language: XHTML 1.0 Strict " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) " Last Change: 2005 Sep 19 function! htmlcomplete#CompleteTags(findstart, base) if a:findstart " locate the start of the word let line = getline('.') let start = col('.') - 1 while start >= 0 && line[start - 1] !~ '<' let start -= 1 endwhile if start < 0 let curpos = line('.') let stylestart = searchpair('', '', '<\/style\>', "bnW") let styleend = searchpair('', '', '<\/style\>', "nW") if stylestart != 0 && styleend != 0 if stylestart <= curpos && styleend >= curpos let b:csscompl = 1 let start = 0 endif endif endif return start else " Check if we should do CSS completion inside of