When using autocompletion with
<C-n>, if no matching string is found, vim shows the message
Pattern not found into the status bar.
I tried something with this simple function:
function! TestCN() let l:retval = 0 try "\i<C-n>" catch /.*/ " should catch Pattern not Found here" let l:retval = 1 endtry return l:retval endfunction
but it doesn't work.
Is it possible to test
<C-n> with a
try-catch block to test if autocompletition should fail with "Pattern not found" (or any other way) ?