vim-latex


Ⅰ. 插件描述

Unofficial mirror of the "vimfiles" of vim-latex for use in Janus

Ⅱ. 基本信息

创建日期:  2006-05-01
使用用户:  4
Github星:  6
插件作者:  Michel Jansen

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Latex-Suite for Vim

This is a mirror of the official vim-latex repository
for use in Vim Janus (https://github.com/carlhuda/janus).
It has some Mac-specific modifications to make it work
more sensible out of the box on Mac OS X,
such as using Skim for PDF sync etc.

Prerequisites

See the latex-suite docs for details. You should at least have
(Mac)Vim, Janus and a latex distribution installed.

Installing

Installing vim-latex with Janus is easy. Just add the following line
to your local rake definitions in _~/.janus.rake_:

vim_plugin_task "vim-latex", "git://github.com/micheljansen/vim-latex.git"

Then, from inside the Janus installation in ~/.vim/ run:

rake vim-latex

to install vim-latex.

Optionally, add these lines to your _~/.vimrc.local_:

set grepprg=grep\ -nH\ $*

" OPTIONAL: This enables automatic indentation as you type.
filetype indent on

" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'

Using

Just open any .tex file and then in normal mode hit:

  • ll to complile
  • lv to view
  • ls to jump to the current cursor position using synctex

Depending on your configuration, the vim latex suite might require
some additional fiddling in order to work.

If you get stuff like this:

Error detected while processing function Tex_RunLaTeX:
line    7:
E121: Undefined variable: s:target
E15: Invalid expression: s:target

Remember to set the target (PDF or DVI) in the Tex-Suite menu.

添加新评论