是否试图使用总括完成,如果它不希望使用普通关键词完成的话?
i thougt %omnifunc != should do it...
but what am i missing?
Here is my function.
function! CleverTab()
if pumvisible()
return "<C-N>"
endif
if strpart( getline( . ), 0, col( . )-1 ) =~ ^s*$
return "<Tab>"
elseif &omnifunc !=
return "<C-X><C-O>"
else
return "<C-N>"
endif
endfunction
inoremap <Tab> <C-R>=CleverTab()<CR>