supertab
supertab copied to clipboard
(harmless?) error with recent vim 7.4 versions
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=" "
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>
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).
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.