Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'avakarev/vim-rusa'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'avakarev/vim-rusa'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'avakarev/vim-rusa'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/avakarev/vim-rusa
Ⅳ. 文档说明
# rusa.vim #
I love VIM so much that I do with it all my text edition task.
Even not programming task. And when I writing some blog post, or some my
notes in russian, it is very boring to switch often from english to
russian and vice versa.
The problem is that in VIM it's not possible by default type-in VIM commands
while non-english language choosen.
So, this plugin will help you type-in usual VIM commands while you are in
normal mode and russian is choosed as a system input language.
In insert mode and while searching/replacing, russian symbols will be
typed in as expected.
Additionally, there are bind two commands
- :йй (act as ':q')
- :цц (act as ':w')
Actually, there is no any logic in this plugin, just remappings for rus -> eng characters.
So, it's a good idea to keep it in vimrc file, but personally I am don't want
add extra ~60 lines that will not change for years.