[ale] Off the wall vi question

Jim ale_nospam at fayettedigital.com
Thu Mar 2 10:18:52 EST 2006


Since he was asking about vi, and mention "running commands" I suspect 
he really meant ex commands rather than visual commands, if so, I'd 
think ex with a here document would give him a bit more flexibility.  
Personally I find the ex command set easier to use than the ed set, but 
that's probably 'cause I'm a vi user. 

Jim.
Geoffrey wrote:

>tom sawyer wrote:
>  
>
>>Hello all,
>>
>>I was just wondering, is it possible to have a *sh
>>script call vi and then execute commands inside of vi?
>> Or, is it possible to load a file in vi that
>>automatically runs commands/aliases/etc?
>>    
>>
>
>You want to use either sed or ed with a HERE doc.  ed with a HERE doc is 
>likely to be a better solution as you edit a single file in place, where 
>as sed is going to require input and output files, whereas the HERE doc 
>will edit the file in place.
>
>  
>
>>Just curious,
>>Thanks,
>>Tom
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam?  Yahoo! Mail has the best spam protection around 
>>http://mail.yahoo.com 
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>
>>    
>>
>
>
>  
>




More information about the Ale mailing list