[ale] VI

J.M. Taylor jtaylor at onlinea.com
Fri Jun 27 11:56:21 EDT 2003


If you don't want to create a macro, do
esc
i
 
esc

then move your cursor to where you want the next &nbsp to appear and hit
the . (dot) key. You do not have to hit i or a before the ., it will do
like a mini-macro and get every keystroke between the esc's.  Remember to
put your cursor where you would for a normal insert or you'll get a lot of
&nbs p; type junk.  you can of course use 'a' instead of 'i', same
laws apply about positioning your cursor.

jenn


Robert L. Harris said:
>
>
> I'd probably use a macro.  In your .vimrc (.virc) put something like
> this:
>
> map ,is &nbsp
>
>   (The last char is an escapre produced by "ctrl-v esc")
>
>
> Then in your docuements you can just hit ",is" for the insert and it'll
> drop you back into command mode after.  Get rid of the esc at the end
> and it'll leave you in insert mode.  Note you have to be in command mode
> for macros to work.
>
> Robert
>
>
> Thus spake tom hawks (tomhawks801 at yahoo.com):
>
>> Probably a simple question. Say i am using a bunch of
>>  , what is the command in vi where I dont have to
>> type in the whole phrase, just a keystroke or
>> something?
>>
>> tom
>>
>> __________________________________
>> Do you Yahoo!?
>> SBC Yahoo! DSL - Now only $29.95 per month!
>> http://sbc.yahoo.com
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://www.ale.org/mailman/listinfo/ale
>
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris                     | GPG Key ID: E344DA3B
>                                          @ x-hkp://pgp.mit.edu
> DISCLAIMER:
>       These are MY OPINIONS ALONE.  I speak for no-one else.
>
> Diagnosis: witzelsucht
>
> IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
> IPv4 = robert at mail.rdlg.net	http://www.rdlg.net



_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list