automatic type along completion as in Notepad++? - vim_use | Google Groups - 0 views
-
augroup foo au! au CursorMovedI,InsertEnter * if search('\k\{2,}\%#\k\@!','ncb') | \ call feedkeys("\<c-n>\<c-p>","t") | endif augroup END inoremap <expr><cr> pumvisible()?"\<c-n>\<c-y> ":"\<cr>" Pressing return-key will accept the first match. Be ready to exit the editor.