Ⅰ. 插件描述
Vim Tex / LaTeX ftplugin to automatically change keymap (language)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/tex-autokeymap'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/tex-autokeymap'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/tex-autokeymap'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/tex_AutoKeymap
Ⅳ. 文档说明
This script will be useful for users, who edit tex files with text not in
English language. With this script you will no longer need to change
system language when editing usual text and formulas. Internal vim
language (see keymap) will change automatically based on cursor position.
For example, if you set in your .vimrc or tex.vim file
let g:tex_Keymap = 'ru'
then in text zone your keymap will be 'ru', and if you start edit a
formula keymap will be changed to default automatically.
It is based on default tex sintax information and some regular expressions.
To disable script you can commentify the string
let g:tex_Keymap = 'ru'
Use <C-J> to manually change keymap
Suggestions and improvements are appreciated.