Ⅰ. 插件描述
Vim plugin to transliterate from alphabet with diacritics into latin alphabetⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kubahorak/diacritic'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kubahorak/diacritic'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kubahorak/diacritic'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kubahorak/diacritic
Ⅳ. 文档说明
Diacritic
Vim plugin to transliterate from alphabet with diacritics into latin alphabet.
Or put simply: it removes diacritics.
Transliteration can be illustrated by the following example. Suppose you have a
Czech text:
Příliš žluťoučký kůň úpěl ďábelské ódy.
Then the transliterated text without diacritics is:
Prilis zlutoucky kun upel dabelske ody.
Prerequisites
- glibc - GNU C library must be installed in the system.
- Plugin is currently tested only on Linux.
Installation
Using Pathogen
Clone this repository to your .vim/bundle directory, for example:
cd ~/.vim/bundle
git clone https://github.com/kubahorak/diacritic.git
Manually
Download the zip file and extract its contents into your .vim directory.
Usage
Use command <leader>p in visual mode, visual block mode or use it with
standard motion operators.
E.g. <leader>p3e removes diacritics from the next 3 words.
You can also use ex command :DiacriticTranslit to transliterate the whole
line or range of lines.
For more information please refer to the Vim help page.
License
MIT License. Copyright (c) 2014 Jakub Horák