Ⅰ. 插件描述
Finally, the power of Vim + FIGlet!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fadein/figlet-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fadein/figlet-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fadein/figlet-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Figlet.vim
Ⅳ. 文档说明
## This repository is no longer being maintained
It remains for historical reasons.
Please clone https://github.com/fadein/vim-FIGlet to upgrade to the new and
official repo of the Vim FIGlet plugin.
Upgrade procedure
The repository at https://github.com/fadein/FIGlet.vim is stuck at v3.0 and is
no longer maintained.
You are encouraged to upgrade by cloning this repository.
Use the g@ operator or the :FIGlet command to filter your text through figlet, in-place!
:FIGlet has a completion function that will complete on installed font names, too.
Plus, there is a Windows/MS-DOS version of FIGlet, so everybody can get in on the fun!
Q: Can't I do this same thing with the :! command?
A: Basically, sure
Q: What does this plugin give me that Vim's built-in filtering doesn't?
A1. Convenience - through variables it can remember your preferences
A2. Completion - so you don't have to memorize all of the commands or font names
A3. Text-objects - use the g@ operator with text-objects for blazing fast transformations that will knock shoulder-surfer's socks off
A4. A font sample buffer to help you pick out the perfect font for the occasion
Q: Okay, I'm sold. But what is this FIGlet you speak of?
A: This:
__ _ _ _
/ _(_) __ _| | ___| |_
| |_| |/ _` | |/ _ \ __|
| _| | (_| | | __/ |_
|_| |_|\__, |_|\___|\__|
|___/ Check out http://www.figlet.org/ to get with the times.
install details
Make sure you've got the figlet program installed on your $PATH
Copy FIGlet.vim into your .vim/plugin directory