Vim-LaTeX compatibility

22 views
Skip to first unread message

d.avi...@gmail.com

unread,
Sep 29, 2007, 6:43:50 AM9/29/07
to vim_mac
Hello,

I am a linux user who is about to switch to Mac OS, and I am getting
preliminary informations. Being an intensive Vim user, I find this
project extremely interesting. Has anybody ever used MacVim with the
Vim-LaTeX suite? If yes, is direct/inverse pdf search possible? Does
MacVim prefer any pdf viewer?

Thanks for the package, it seems to be a great idea.

Daniele

Michael Dunn

unread,
Sep 29, 2007, 8:02:46 AM9/29/07
to vim...@googlegroups.com
I haven't used it myself, but there's a tip (up for review) which
discusses this:

http://vim.wikia.com/wiki/Backward_search_for_latex_documents_on_Mac_os_x

Cheers, Michael

d.avi...@gmail.com

unread,
Sep 29, 2007, 8:45:42 AM9/29/07
to vim_mac
Thanks for the answer, I think I had come across something similar,
and I have to reformulate my question:

on the tip you link, it is written

" Sadly, the current version of Vim for Mac doesn't support
clientserver feature of the standard version, so I could not use the --
remote flag to send the command to vim."

And maybe (I am just guessing here) having this flag available would
make life easier. Secondly, among the MacVim features I have read that
it support
"Client/server (+clientserver): use the --remote switch and friends to
open files; script the server with remote_send() et al."

My suspect was that integration with some pdf viewers has been made
available by MacVim develpers.

Is that hack useless if I will be using MacVim?

Thanks.

Daniele


On Sep 29, 1:02 pm, "Michael Dunn" <misha.d...@gmail.com> wrote:
> I haven't used it myself, but there's a tip (up for review) which
> discusses this:
>

> http://vim.wikia.com/wiki/Backward_search_for_latex_documents_on_Mac_...
>
> Cheers, Michael

Jeremy Conlin

unread,
Sep 29, 2007, 8:41:34 PM9/29/07
to vim...@googlegroups.com
On 9/29/07, d.avi...@gmail.com <d.avi...@gmail.com> wrote:
>
> Thanks for the answer, I think I had come across something similar,
> and I have to reformulate my question:
>
> on the tip you link, it is written
>
> " Sadly, the current version of Vim for Mac doesn't support
> clientserver feature of the standard version, so I could not use the --
> remote flag to send the command to vim."
Fortunately for all of us, the MacVim version of Vim now supports the
client/server feature. This feature was not available in the old
carbon version.

If you haven't heard yet, MacVim is a great gui for Vim on the Mac.
While it is still in beta, I find the app to be very stable. Bjorn
and others are working hard and releasing new snapshots every week or
so. Check it out and see if it meets your needs with vim-latex.

Jeremy

d.avi...@gmail.com

unread,
Sep 29, 2007, 9:26:51 PM9/29/07
to vim_mac
Thank you, I will.

Daniele

On Sep 30, 1:41 am, "Jeremy Conlin" <jerem...@gmail.com> wrote:

Ian Griffiths

unread,
Oct 13, 2007, 6:02:17 AM10/13/07
to vim...@googlegroups.com


Hi Daniele,

I've actually just got this (inverse searching) working myself with
latex-suite and MacVim. I used Skim [1] for the pdf viewer as Acrobat
and the built in Preview application don't support pdfsync.

First of all install the latest MacVim snapshot [2], and latex-suite
[3] if you haven't already. Then in your .vimrc tell latex-suite to
use Skim to view the pdf by adding the following:

let g:Tex_ViewRule_pdf = '/Applications/Skim.app'

Then in Skim you need to tell it to use MacVim for the text editor by
going to the "Sync" tab in the preferences and choosing the "Custom"
preset and use:

Command: mvim
Arguments: -c ":RemoteOpen +%line %file"

Now if you use Shift+Command+Click somewhere in the pdf it should open
MacVim at the correct place :)

Notes: I'm using pdflatex to generate the pdf, and I've got
\usepackage{pdfsync} in my latex code. Oh and when I installed MacVim
i put the mvim script into /usr/local/bin which is in my PATH.

I hope that helps, good luck,
Ian

[1]: http://skim-app.sourceforge.net/

[2]: http://code.google.com/p/macvim/

[3]: http://vim-latex.sourceforge.net/index.php

Reply all
Reply to author
Forward
0 new messages