Hello, I'm using SuperTab together with Latex-Box. The idea is to use <tab>
to perform basically <c-p> autocompletations most of the time. However, if
a path is detected, <c-x><c-f> should be applied. In other situations
(specifically for LaTeX files), omnicompletation should be applied, which
is carried out by Latex-Box.

After reading the help file (which I admit I don't fully understand), I
came out with these lines in my .vimrc:

let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabContextDefaultCompletionType = "<c-p>"
let g:SuperTabCompletionContexts = ['s:ContextText', 's:ContextDiscover']
let g:SuperTabContextDiscoverDiscovery = ["&omnifunc:<c-x><c-o>"]

This does work pretty well for LaTeX and file autocompletations, but does
not work when I expect SuperTab to perform plain <c-p> autocompletations.

For example, if I write \be<tab> it autocompletes to \begin and a popup
menu appears to let me select the LaTeX environment. It also works well for
file completation if I write something like /hom<tab>.

However, if I write "averylongword averylo<tab>" it does not perform the
expected <c-p> completation. Instead, it says " -- Omni completion (^O^N^P)
Pattern not found" and does nothing.

In theory, when omnicompletation does not produce anything, the default
completation should come to the rescue, which I set to <c-p> in the second
option.

So why do you think this is not working as expected?

Thank you very much!

-- 
Juan José Gómez-Navarro

University of Bern
Physics Institute
Sidlerstrasse 5
CH-3012 Bern
Switzerland
+41 31 631 4871
http://www.climate.unibe.ch/~gomez/

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to