* A.J.Mechelynck is quoted & my replies are inline below :
> Troy Piggins wrote:
> >I was looking for some helper commands for using something like
> >'figlet' from within vim.
> >
> >Searched the vim scripts and closest I could find was the
> >larlet.vim script http://www.vim.org/scripts/script.php?script_id=1357
> >
> >At present I have this in my .vimrc:
> >map ,f :r!figlet 
> >
> >I was wondering if anyone has something a little more advanced.
> >Perhaps a font chooser?
> 
> - Vim or gvim is meant to display exactly one character per character cell, 
> except in the case of "wide" East-Asian characters (which occupy two 
> character cells), combining characters (which do not occupy a distinct 
> character cell), nonprinting or invalid characters (which may be shown as 
> "^P" (two cells), "<fffe>" (six cells) etc.); and, of course, hard tabs 
> (which occupy between 1 and 'tabstop' character cells). There is no 
> provision for ASCII-art characters in Vim.

I understand that.  Figlet is just arranging single chars into
patterns that appear as large (multiple row/column) fonts -
similar to ascii art.  I know there is no provision for that
directly in vim.  But there are ways to make it easier to invoke.

> - You can use figlet as a filter (see ":help filter"). It must of course be 
> present on your system (I have it in /usr/games/).

Filter looks promising.  If you have figlet on your system, how do
you use it?  Do you ever use it within vim?  Do you have keys
mapped, or scripts?

> - A font chooser exists in the Windows, Mac, Photon, GTK1 and GTK2 versions 
> of gvim (for system fonts, be they bitmapped, TrueType, OpenType etc.):
> 
>       :set guifont=*
[snip]

By 'font', I meant figlet fonts.   Sorry for not being clearer.  So
a way of choosing a selection of files in
/usr/local/share/figlet/*.flf files to use as the '-f' option for
figlet:

:!figlet -f xxx.flf

Thanks.

-- 
Troy Piggins | http://piggo.com/~troy

Reply via email to