Ⅰ. 插件描述
:loudspeaker: Make Vim read text out loud!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-utils/vim-read'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-utils/vim-read'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-utils/vim-read'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-utils/vim-read
Ⅳ. 文档说明
# vim-read
Make Vim read text out loud!
(Works on OSX only)
About
This plugin uses the say OSX command and makes it nice to use from Vim.
Features:
- convenient (but non-intrusive) mappings
- reads in the background so you can actively use Vim while listening
- ability to stop reading at any moment
- makes sure only one voice is reading at the time, no overlay
- quitting Vim stops reading
Mappings
yr<motion>- read operator (mnemonic for: "You Read <motion>")yrr- read the current lineyrs- stop reading (mnemonic for: "You Read Stop")
Visual mode mappings:
CTRL-R- reads visual selection
Use scenarios
Situations when I use this plugin:
- checking long program input I had to type in manually, example: I wanna check
I correctly typed a long range of numbers that are an input for the
algorithm (0 9 1 -4 2 11 4 8 -3 0 ...)
- reading an email I wrote so I can focus on how it sounds
Installation
Just use your favorite plugin manager.