On 03-Feb-2012 11:14:54 -0800 (PST), Wallace Babb wrote:

> (not sure if this should be in Vim_use instead, but anyway)

Probably, but never mind.

> I seem unable to find any resources pertaining to making text or
> characters being displayed as _other_ characters.
> For example, say I want the form feed (^L) character to be displayed
> as a row of dashes (-----). I _could_ use :imap to substitute it, but
> I want the actual ^L to remain in the file, and for it to just
> _appear_ as a row of dashes.
> Is this possible (without modifying the actual VIM source)?

Vim 7.3 has introduced the "conceal" feature, related to syntax highlighting. It
allows replacing a stretch of text by a character, but not the other way around,
so you could only replace each individual ^L with a single dash.

See :help conceal for more information, and have a look at syntax files that
already use the feature (e.g. $VIMRUNTIME/syntax/tex.vim). (Or ask around on
vim_use.)

-- regards, ingo

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui