shaberu.vim


Ⅰ. 插件描述

めっちゃしゃべる

Ⅱ. 基本信息

创建日期:  2013-02-04
使用用户:  9
Github星:  14
插件作者:  supermomonga

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/supermomonga/shaberu.vim

Ⅳ. 文档说明

# Shaberu.vim

Shaberu.vim is the wrapper of speech synethis.
You can make your vim speak easily with Shaberu.vim.

Install

Put following lines into your .vimrc.

NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/vimproc'
NeoBundle 'supermomonga/shaberu.vim'

Then, execute :Unite neobundle/update

Configuration

If you use Mac OS X or Windows, you don't need to do anything.
If you use other OS like Linux, you need to set _g:shaberu_user_define_say_command_.

let g:shaberu_user_define_say_command = 'saycommand "%%TEXT%%"'

Shaberu convert %%TEXT%% to the text to speak.

Example

" Speak Japanese voice on OS X
let g:shaberu_user_define_say_command = 'say -v Kyoko "%%TEXT%%"'

Usage

Simplly, execute :ShaberuSay command to speak text.

:ShaberuSay Hi! I'm vim!

More futures

Shaberu.vim has more futures, like Mute toggle, outputter for QuickRun.vim , and others.
See _:h shaberu_.

添加新评论