Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(harmless?) error with recent vim 7.4 versions #174

Open
twwn opened this issue Aug 8, 2016 · 3 comments
Open

(harmless?) error with recent vim 7.4 versions #174

twwn opened this issue Aug 8, 2016 · 3 comments

Comments

@twwn
Copy link

twwn commented Aug 8, 2016

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=""

@ervandew
Copy link
Owner

ervandew commented Aug 8, 2016

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>

@twwn
Copy link
Author

twwn commented Aug 8, 2016

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

inoremap pumvisible() ? "" : ""

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

@razcore-rad
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants