Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SuperTab does not seem to fall back to secondary completion #99
I'm using Supertab together with Latex-Box. My .vimrc looks like:
Everything works very well when I want supertab to apply omnicompletion or file completion. However, most of the time I want it to apply , but in this situations it does not work. For example, if I write "averylongword avery" supertab tries to use omnicompletation. Since it can not do anything with this, I expect that it applies , which is the default completion type, but it does not. It just sends the error message:
and does nothing else.
Is this the expected behaviour? To me it looks like something is wrong, but I can not tell if it's just my .vimrc setup or a bug in the script.
Sorry, but I still don't get it and the setup does not work.
I have this right now:
I have gone carefully through the documentation (several times), and I read this code as follows: SuperTab tries to use context completion first. In particular it applies first ContextText, which will apply file completion if possible (among others that do not apply to my case). If this does not find any match, it will continue for ContextDiscover. Here, I specify that SuperTab should use omnicompletion. If this does not work, the chain shall continue, and should be triggered.
The results is that it should try to use file completion, then omnicompletion, and finally word completion. But it does not do that. Actually right now it only tries completion, ignoring any other things.
Sorry if I sound desperate, but I have really gone through the documentation and I could not figure out how to get the results I want. My hope is that this will help to improve the documentation with maybe a more illustrative example...
needs to be changed to:
Note the change to use
OK, this seems to work. The only issue is that now it does not perform file completion. It looks like the chain
is not possible.
It's fine, I can live with this results. As a constructive chriticism, maybe the help could be clearer in this respect. I have gone through some closed issues and it looks like I'm not the first one having problems to understand how to tune SuperTab (see here and here).
Thank you very much for your time here and for developing this great plugin!
Yes and no. The only completion chaining that can be supported with vim's current completion mechanism is having either user or omni completion tried, then some other completion.
it would end up being:
To enable that flow simply make sure you still have
So if you normally have it set to something else, but want to leverage context completion only with completion chaining then you'd have:
If you alway want to have
I agree that the docs can always use more work. I'll try to provide more examples to hopefully clear things up.
referenced this issue
Aug 7, 2014
I cannot confirm that the chaining of completions with the current versions of
Do I need a newer vim version?
I could narrow my problem down by echoing
Seems ~/.vim/ftplugin/latex-box/mappings.vim is executed after my vimrc autocommand.
I am using pathogen to load the plugins.
Running by hand the autocmd FileType via
For completeness my setup:
Verification of settings and load order