supertab icon indicating copy to clipboard operation
supertab copied to clipboard

(harmless?) error with recent vim 7.4 versions

Open twwn opened this issue 8 years ago • 3 comments

From at least 7.4.2143 onward (which is in the Arch repos) to at least 2181 vim will throw this error at start, but otherwise appears to work fine:

Error detected while processing /home/meme/.vim/plugged/supertab/plugin/supertab.vim: line 1000: E475: Invalid argument: [NULL] Press ENTER or type command to continue

Line 1000 is

let s:ShiftTab = function(stab)

My .vimrc has these supertab lines:

let g:SuperTabDefaultCompletionType="" let g:SuperTabContextDefaultCompletionType=""

twwn avatar Aug 08 '16 09:08 twwn

Looks like you should also have a mapping for <s-tab> either in your vimrc or some other plugin, can you post that mapping here?

If you can't find it, try disabling supertab (move it out of the way or put let loaded_supertab = 1 in your vimrc), then open a new vim instance and run:

:verbose imap <s-tab>

ervandew avatar Aug 08 '16 15:08 ervandew

True, the imap shows s-tab set by the vimrc line

inoremap <S-TAB> pumvisible() ? "<C-p>" : "<S-TAB>"

in my settings for neocachecompl (dunno why I put that there, prob some workaround).

twwn avatar Aug 08 '16 16:08 twwn

I just updated this and get the same error. I think the fix is to replace line 1000 with:

let s:ShiftTab = stab

I'm not sure what side effects this has, but function() definitely isn't supposed to be there.

razcore-rad avatar Feb 26 '17 17:02 razcore-rad