Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writting a vi macro, help please.



You can record macros by pressing q[a-z] in command mode and another q to
stop recording. '@[a-z]' will play it.

e.g.
'qa' will record a macro and name it 'a'. You can play it back with '@example.com'
('100@example.com' will play it a hundred times).

Have fun.

A.Sajjad Zaidi


Antony Stace wrote:

> Hi Folks
>
> Can someone please tell me how I can write a macro for vi which will
> insert both a /* at the start of a line and a */ at the end of it.
>
> ie.
>
> I am a comment
>
> becomes
>
> /*I am a comment*/
>
> Cheers
>
> Antony
>
> -----------------------------------------------------------------------
> Next Nomikai (and Bonenkai!): December 15 (Fri)
> Next Technical Meeting: January, 2001
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links