Ⅰ. 插件描述
Support files for editing plain TeX documentsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/plaintex-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/plaintex-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/plaintex-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/plaintex.vim
Ⅳ. 文档说明
ftplugin/plaintex.vim
compiler/plaintex.vim
doc/ft-plaintex.txt
This package provides a compiler plugin and a filetype plugin for editing plain TeX documents ('ft' = plaintex). It is intended to be used in addition to the default ftplugin for plaintex, which I also maintain.
The compiler plugin enables you to run tex (or pdftex) on your file with
:make
and then correct errors using quickfix mode.
The filetype plugin maps " (double quote mark) to insert `` (open quotes) at the start of a quotation, then '' (close quotes) at the end. It also maps <C-B> to insert "{bf }" and <C-T> to insert "{it /}". Both of these keys work in Normal, Insert, and Visual modes.