I want the first completion entering abc def and the second entering 2nd example 2nd lne
How to do this? example (source this the following lines) function! CompleteExample(findstart, base) if a:findstart " locate the start of the word let [bc,ac] = vl#lib#buffer#splitlineatcursor#SplitCurrentLineAtCursor() return len(bc)-len(matchstr(bc,'\%(\a\|\.\|\$\|\^\)*$')) else call complete_add( { 'word' : "abc\ndef" \ , 'abbr' : "completion1" \ } ) call complete_add( { 'word' : "2nd exapmle\n2ndline" \ , 'abbr' : "completion2" \ } ) endif endfunction set completefunc=CompleteExample Marc