Ⅰ. 插件描述
FIGlet plugin for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fadein/vim-figlet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fadein/vim-figlet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fadein/vim-figlet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fadein/vim-figlet
Ⅳ. 文档说明
__ _
| __| _/ __| | ___| | (_)/ | _
| |_ | | | | |/ __|____| | |_| | | |
| _| | | |_| | | __/ ||_____| | _| |_| |
|_| |_______|_|___|__| |_|_| __, |
|___/
, , , . , . . . .._. -+- ./-+- . ,*-+-|_ -+-|_ _
_|(_)(_|[ | (/,/' | // | | [ ) | [ )(/,
._|
@@@@@@@@@
@@:::::::::@@
@@:::::::::::::@@
ggggggggg ggggg@:::::::@@@:::::::@ g:::::::::ggg::::g@::::::@ @::::::@
g:::::::::::::::::g@:::::@ @@@@:::::@
g::::::ggggg::::::gg@:::::@ @::::::::@
g:::::g g:::::g @:::::@ @::::::::@
g:::::g g:::::g @:::::@ @:::::::@@
g:::::g g:::::g @:::::@ @@@@@@@@
g::::::g g:::::g @::::::@
g:::::::ggggg:::::g @:::::::@@@@@@@@
g::::::::::::::::g @@:::::::::::::@
gg::::::::::::::g @@:::::::::::@
gggggggg::::::g @@@@@@@@@@@
g:::::g gggggg g:::::g
g:::::gg gg:::::g
g::::::ggg:::::::g
gg:::::::::::::g
ggg::::::ggg
gggggg
.-.
.' `. .--. .---. .--. .--. .--. `. .'.--. .--.
' .; :: .; `' '_.': ..'' .; ; : :' .; :: ..'
.__.': ._.'.__.':_; .__,_;:_;.__.':_;
: :
:_;
o | |o| o | | |
.,---. ,---.,---|,---|.|--- .,---.,---. |--- ,---. |--- |---.,---.
|| | ,---|| || ||| || || | | | | | | ||---'
' `---^`---'`---'---'`---' ' ---'---' ---' '`---'
______________________________ _____ __ _/ / /_ /___ /_
(_) /_ / / / _ __/
_ _ _/ __/ / / /_/ / / / _/ /
_(_) /_/ /___/ ____/ /_/ ___/__/
888 e88'888 e88 88e 888 888 8e 888 888 8e ,"Y88b 888 8e e88 888
d888 '8 d888 888b 888 888 88b 888 888 88b "8" 888 888 88b d888 888
Y888 , Y888 888P 888 888 888 888 888 888 ,ee 888 888 888 Y888 888
"88,e8' "88 88" 888 888 888 888 888 888 "88 888 888 888 "88 888
.-._.).--.
`-=-.`-=-. ( )/ `-=-.`-=-.
`-'/
(o)__(o)\\ // wWw wWw\\\ ///,
(__ __)(o)(o) wWw wWw (O) (O)((O)(O))
( ) || || (O)_ (O)_ / ) ( \ | \ ||
)( |(__)| .' __) .' __)/ / \ \||\\||
( ) /.--.\( _) ( _) | \____/ ||| \ |
)/ -' `-`.__) )/ '. `--' .`|| ||
( ( `-..-' (_/ \_)
___ ___ ___ ____ ________ __ __ __ __ ___ _ _
||\\//|| // \\ || \\ || || \\||\ || || ||// \\\\//
|| \/ ||(( ))|| ))||== ||_//||\\|| \\ /\ //||=|| )/
|| || \\_// ||_// ||___|| \\|| \|| \V/\V/ || ||//
_ _
_| |_ ___ ._ _ _ ___ | |__ ___
| | / . \ | ' ' |<_> || / // ._>
|_| \___/ |_|_|_|<___||_\_\\___.
_ _ _ _
___ | | _| | ___ ___ ___ | |_ ___ ___ | |
/ . \| |/ . ||___|<_-</ | '| . |/ . \/ . \| |
\___/|_|\___| /__/\_|_.|_|_|\___/\___/|_|
_ _
(_) (_)
_ (_) _ _ _ _ _ _ _ _ _ (_) _ _
(_)(_)(_)(_) (_)(_)(_)(_)_(_) _ _ (_)(_)(_)(_)(_)
(_) (_) _ _ _ (_) (_)_(_) (_)
(_) _ (_)(_)(_)(_)(_) _(_)_ (_) _
(_)_ _(_)(_)_ _ _ _ _ (_) (_) _ (_)_ _(_)
(_)(_) (_)(_)(_)(_)(_) (_) (_)(_)
_ _ _ _ _
_(_)(_) (_) (_)(_)
_ (_) _ _ _ (_) _ _ _ _ _ _ _ _
(_)(_)(_)(_)(_) (_) (_)(_)(_)(_)_ _(_)(_)(_)(_)
(_) (_) (_) (_) _ _ _ (_)(_)_ _ _ _
(_) (_) (_) (_)(_)(_)(_)(_) (_)(_)(_)(_)_
(_) _ (_) _ _ (_) _(_)_ _ _ _ _ _ _ _(_)
(_) (_)(_)(_)(_)(_)(_) (_)(_)(_)(_) (_)(_)(_)(_)
_ _ _
|__] _/ . |___ |__/ | |_/ |___ |__| | | | |__/
|__] | . |___ | | | _ | | | |___ |__| |
I cannot thank Suraj N. Kurapati enough for submitting a patch that sets the
'[ and '] marks around the FIGlet-ified text. Thank you for your great work.
If it weren't for you there wouldn't be a version 3.0!
This plugin requires that the fully awesome program `figlet' be installed on
your system. http://www.figlet.org/
If you're on Windows, hope is not lost. There is a figlet port for MS-DOS
here: ftp://ftp.figlet.org/pub/figlet/program/ms-dos/figdos22.zip.
Be sure to specify the font directory in your _vimrc through the
g:filgetOpts variable.
FIGlet for MS-DOS is an old program, so you should make sure that your font
files conform to FAT-16 style 8.3 filenames, and don't use fancy paths with
spaces:
let g:figletFontDir = 'C:PROGRA~1FIGLETFONTS'
_ , ,- - ,
|| _ ||
' || - < , =||= \ \ ,._-_ - _-_, <>
|| || \ /-|| || || || || || \ ||_.
|, ||/ (( || || || || || ||/ ~ ||
_-/ \,/ /\ \, \/\ \, \,/ ,-_- <>
- If figlet fails to run, your original text is put back w/o messing up your
undo history too much (you can still redo to the oopsie). - :FIGlet command accepts a range, of lines and has completion. Hit tab
after typing the -f switch to list available fonts.
Get a lot of fonts at http://www.figlet.org/fontdb.cgiEx. Render lines 1 through 7 in the tengwar font:
:1,7FIGlet -f tengwarEx. Render the visual selection in the doom font, centered in 90 columns:
'<,'>FIGlet -w 90 -c -f doom - Width is inferred from your 'textwidth' (except on Windows with the DOS
build of figlet, as noted above). - The :FIGletFontDemo command will show you a sample of each font installed
in your font directory. By default this command will render each font
eponymously, or you may specify a snippet of text to render so as to allow
comparison between fonts.Ex. See what the word "Supercalifragilisticexpialidocious" looks like in each font:
:FIGletFontDemo Supercalifragilisticexpialidocious - The g@ operator takes all of the chosen text (selected with motion
commands or text-objects) and puts it all into the same paragraph.
the :FIGlet command works one line at a time. It makes a difference
when rendering text like this:
1.
2.
:FIGlet outputs:_
/ |
| |
| |_
|_(_)
__
|___
__) |
/ _/
|_____(_)
g@ instead outputs: _
/ | |___
| | __) |
| |_ / _/
|_(_) |_____(_)