Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: Writting a vi macro, help please.
- To: tlug@example.com
- Subject: Re: Writting a vi macro, help please.
- From: "A.Sajjad Zaidi" <sajjad@example.com>
- Date: Fri, 17 Nov 2000 19:53:57 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <3A149F10.73AA85B3@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <WN0_zB.A.GSC.H5QF6@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: sajjad
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
- References:
- Writting a vi macro, help please.
- From: Antony Stace <antony@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Mailman archive and Japanese
- Next by Date: Re: any future broadband rumors?
- Prev by thread: Re: Writting a vi macro, help please.
- Next by thread: any future broadband rumors?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links