Hi,
I use the F9-completion very often and feel to make some advertising ;)
I patched the outline.py, such that it offers a greater gain for me. But
first I will take up Ted's arguments.
> > Additionally \citep, \citet, \citeauthor, etc... Not sure if they
would
> > match whatever pattern triggers the F9 completion... But I never use
> > \cite (in favor of the natbib variaties) and almost never use \ref (in
> > favor of hyperref's \autoref), and so F9 is potentially unhelpful.
That's no big deal - the recognizing of the other commands can be easily
added - just post your problems.
> Moreover, doesn't F9 depend on a Python script? One of the big reasons I
> use Vim is that I can wall myself off from depending on other tools (and
> maximize my portability).
For me it is no problem that F9 depends on Python. I use my ViM
configuration at three linux machines, all offering Python in ViM. Does
Python+ViM works in
Windows?
> So I guess those are my reasons why completion doesn't concern me...
>
> -) F9 is uncomfortably far from any other key on the keyboard... would
> have preferred a command-mode combination, maybe...
You guessed it already - remapping is everything ;)
> -) Questionable support for \autoref (and custom variants, like
> \Autoref, \Autorefs, and \autorefs)
>
> -) Questionable support for natbib \citep, \citet, and friends
>
> -) Dependence on Python
See above.
Now I will comment my customizations. I patched/rewrote outline.py. Now,
it
looks at the aux-file and not at the tex-file. If I write some
mathematical
text, then I think "I need equation (3.4)". Up to now, I needed to look
in the
tex-file for the corresponding label. With my patched version, I can do
the
following:
Typing (3.4)<F9> results in \eqref{eq:a_beautiful_equation}
Moreover, I also works for theorems etc. Typing theorem.4.5 results in
\autoref{thm:a_nice_theorem}
You can find these patch in my github-vim-configuration
https://github.com/gerw/vim-conf-gerw. You need the files
bundle/vim-latex-suite/ftplugin/latex-suite/{auxoutline.py,texviewer.vim}.
I
the next days I may publish a patch for latex-suite, depending on the
response
here.
Gerd
|