turkish-deasciifier.vim


Ⅰ. 插件描述

Vim plugin to use emres/turkish-deasciifier

Ⅱ. 基本信息

创建日期:  2014-07-12
使用用户:  1
Github星:  15
插件作者:  Joomy Korkut

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'joom/turkish-deasciifier-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'joom/turkish-deasciifier-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'joom/turkish-deasciifier-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/joom/turkish-deasciifier.vim

Ⅳ. 文档说明

turkish-deasciifier.vim

This plugin is a tool to pipe your selection into a Turkish deasciifier, which is based on Deniz Yüret's turkish-mode.

It contains two functions, one to deasciify a selection, and the other to asciify it.

You can create key mappings for it like this in your .vimrc file:

vmap <Space>tr :<c-u>call Turkish_Deasciify()<CR>
vmap <Space>rt :<c-u>call Turkish_Asciify()<CR>

Demo

Demo

Requirements

Note that you need to install an executable Turkish deasciifier program. There are several ports of it in different languages.

1) f/deasciifier is the easier version to install if you have node and npm installed. This command would install the deasciifier:

npm install deasciifier -g

Then you have to include this line in your .vimrc file:

let g:turkish_deasciifier_path = 'deasciify'

2) joom/turkish-deasciifier.hs is another easy version to install if you have Haskell installed (cabal and ghc). This command would install the deasciifier:

cabal install turkish-deasciifier

Then you have to include this line in your .vimrc file:

let g:turkish_deasciifier_path = 'turkish-deasciifier'

3) emres/turkish-deasciifier is another deasciifier version that you can use if you have Python installed. Running this command would be a easy way to do so:

cd ~/ && mkdir -p Library && cd Library && git clone https://github.com/emres/turkish-deasciifier.git

If you don't specify a path for the executable file, the plugin will assume that it is included in the environment. However, if that is not the case (if you installed emres/turkish-deasciifier with the command above, it is not), you can specify a path for it in your .vimrc file:

let g:turkish_deasciifier_path = '~/Library/turkish-deasciifier/turkish-deasciify'

Installation

You can install it the way you install any other plugin with Vundle or Pathogen.

License

MIT

添加新评论