Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-26-2012
Registered User
 
Join Date: Mar 2012
Posts: 17
Thanks: 6
Thanked 1 Time in 1 Post
create a macro in vi file

In vi, how do I create a macro?

For example, I want to create a macro to join lines and insert ^

Please assist. Thanks!
Sponsored Links
    #2  
Old 04-26-2012
gary_w's Avatar
Registered User
 
Join Date: Oct 2010
Posts: 446
Thanks: 31
Thanked 96 Times in 88 Posts
have a look here: Vi Cheat Sheet

Search for "key mapping"

P.S. To join lines use a capital "J", no need for a macro.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
F-key macro... csharp100 UNIX for Dummies Questions & Answers 1 02-07-2012 05:57 PM
Make-question - redefine a macro, using another macro..? alex_5161 Programming 2 12-11-2008 11:52 PM
in vim how can i view the macro lakshmananindia UNIX for Advanced & Expert Users 2 10-25-2007 06:25 AM
macro bankpro Programming 9 02-01-2006 11:52 AM
VI Macro Problem Atama UNIX for Dummies Questions & Answers 1 05-16-2002 12:13 PM



All times are GMT -4. The time now is 02:56 AM.