Ⅰ. 插件描述
An Ascii Clippy for vim and terminalⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gbigwood/clippo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gbigwood/clippo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gbigwood/clippo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gbigwood/clippo
Ⅳ. 文档说明
Create a Clippy using selected text for your documents.
It features both a command line python script and a Vim plugin.
__
/ _
| | / \
@ @ | It looks |
|| || | like you |
|| || <--| are writing |
|_/| | a letter. |
___/ _____________/
INSTALLATION
Copy the plugin/clippy.vim script into your .vim/plugin
folder.
REQUIREMENTS
Vim must be installed with the +python extension.
You can check that using the command:
vim --version | grep +python
Ubuntu Vim comes with +python support.
USAGE
In Vim
You can pass a range into the command like so:
:1,4Clippy
Or using visual select:
VThen select the lines, then clippyfy with:
:Clippy
In Shell
python clippy.py it looks like you are writing a letter