tex.vim


Ⅰ. 插件描述

Indent file for TeX

Ⅱ. 基本信息

创建日期:  2002-02-16
使用用户:  5
Github星:  2
插件作者:  Johannes Tanzler

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is an indent file for LaTeX.

It emulates Emacs' way of indenting item-environments, i.e., continuation lines of 'item', 'item[]', and 'bibitem' will be indented separately.

NOTE: I searched for an indent file for TeX and didn't found one -- so I wrote this script. Right now I've noticed that Johannes Zellner has already created an indent file for TeX (you can find his version at http://www.zellner.org/vim/indent/tex.vim). I think that's the official version.
Nevertheless, since his version doesn't indent items the way I want them to be, I decided to release my version, too. Try both of them, use the one you like most.

添加新评论