Ⅰ. 插件描述
A tiny vim plugin to aid learning Mandarin.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sajaysurya/vimyin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sajaysurya/vimyin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sajaysurya/vimyin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sajaysurya/vimyin
Ⅳ. 文档说明
# vimyin
A vim plugin to aid learning Mandarin.
Capabilities
- <leader>+cc Get pinyin for current character
- <leader>+cc Get pinyin for selection
- <leader>+cx Open HanziCraft (in default browser) details for current character
Installation
Install using your favourite Vim plugin manager.
Dependencies
Dependencies should be manually taken care of.
- Vim 8.0+ to use the async functionality
- pypinyin (only python3 version is supported, executable should be available in path)
- linux (mac and windows are currently not supported)
Disclaimer
- This is alpha quality code at the moment.
- Functionalities are currently fragile.
- TODOs are listed in the source code.
- Use at your own risk.
Credits
This plugin is just a wrapper and heavily depends on pypinyin and HanziCraft.