On 07/06/11 17:38, Uri Moszkowicz wrote:
I am using this version of Vim:
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 19 2009 17:17:05)
Help lists no argument for this command:
*:abc* *:abclear*
:abc[lear] Remove all abbreviations. {not in Vi}
*:iabc* *:iabclear*
:iabc[lear] Remove all abbreviations for Insert mode. {not
in Vi}
*:cabc* *:cabclear*
:cabc[lear] Remove all abbreviations for Command-line mode.
{not
in Vi}
*using_CTRL-V*
It is possible to use special characters in the rhs of an abbreviation.
CTRL-V has to be used to avoid the special meaning of most non printable
characters. How many CTRL-Vs need to be typed depends on how you enter the
abbreviation. This also applies to mappings. Let's use an example here.
Suppose you want to abbreviate "esc" to enter an <Esc> character. When you
type the ":ab" command in Vim, you have to enter this: (here ^V is a CTRL-V
and ^[ is <Esc>)
Do I need to change versions?
No, it's just that those "special" arguments, which may be applied to
any mapping- or abbreviation-related command, are not described there.
<expr> is mentioned with some commands (because, I suppose, it only
applies together with an {rhs}); <buffer>, which applies to all, is
listed with none.
See:
:help :map-arguments
:help :map-<buffer>
:help :abbreviate-<buffer>
Best regards,
Tony.
--
'Twas the Night before Crisis
'Twas the night before crisis, and all through the house,
Not a program was working not even a browse.
The programmers were wrung out too mindless to care,
Knowing chances of cutover hadn't a prayer.
The users were nestled all snug in their beds,
While visions of inquiries danced in their heads.
When out in the lobby there arose such a clatter,
I sprang from my tube to see what was the matter.
And what to my wondering eyes should appear,
But a Super Programmer, oblivious to fear.
More rapid than eagles, his programs they came,
And he whistled and shouted and called them by name;
On Update! On Add! On Inquiry! On Delete!
On Batch Jobs! On Closing! On Functions Complete!
His eyes were glazed over, his fingers were lean,
From Weekends and nights in front of a screen.
A wink of his eye, and a twist of his head,
Soon gave me to know I had nothing to dread...
--
You received this message from the "vim_use" 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