gvim-pdfsync


Ⅰ. 插件描述

Open file in OS X Vim at a specific line. Good for PDFSync inverse searches.

Ⅱ. 基本信息

创建日期:  2007-07-11
使用用户:  1
Github星:  1
插件作者:  Ted Pavlic

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/gvim-pdfsync'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/gvim-pdfsync'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/gvim-pdfsync'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/gvim-pdfsync

Ⅳ. 文档说明

For a summary of the newest developments (e.g., PDFSync support in the new MacVim project), see

http://phaseportrait.blogspot.com/2007/12/pdfsync-inverse-searches-in-macvim.html

Below are the comments at the head of the gvim-pdfsync script.

gvim-pdfsync: Script for opening a file in Vim in OS X and positioning

               the cursor at a particular line. If the file is already

               open in an existing Vim, the cursor will be repositioned

               re-opening the file.

               The script is meant to extend the inverse searching

               (c.f. PDFSync compatible PDF viewers (e.g., Skim or

               TeXniscope) or DVI viewers that pay attention to

               source specials (e.g., TeXniscope)) to MacVim.

Author: Ted Pavlic

         ted@tedpavlic.com

         http://www.tedpavlic.com/

Usage: gvim-pdfsync "%file" [%line]

        where %file is a file name and %line is a line number.

History and acknowledgments:

    The genesis of this script is this comment:

    http://www.macosxhints.com/comment.php?mode=view&cid=88674

    to this thread:

    http://www.macosxhints.com/article.php?story=20070111095701823

    Most of the important AppleScript is by Yonatan Amit, the original

    author of that thread.

For more information (and history):

http://phaseportrait.blogspot.com/2007/07/pdfsync-inverse-searches-on-vim-for-os.html

添加新评论