function! bukutagcomplete#Complete(findstart, base) if a:findstart == 1 let line = getline('.') let idx = col('.') while idx > 0 let idx -= 1 let c = line[idx] if c == ',' return idx + 2 else continue endif endwhile return idx else return split(system('buku --stag --np | pcregrep -o1 " ([a-zA-Z ]+) (?=\()" | grep ' . a:base), '\n') endif endfunction