vile
[Top][All Lists]
Advanced

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

Re: [vile] How to insert text in a macro


From: Thomas Dickey
Subject: Re: [vile] How to insert text in a macro
Date: Mon, 12 Oct 2015 05:27:05 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Oct 11, 2015 at 11:58:58AM +0100, Chris Green wrote:
> I want to add some text to a file (just one line) in a stored
> procedure and I just can't see how to do it.
> 
> If I do:-
> 
>     goto-beginning-of-file
>     open-line-above-and-insert-chars
> 
> then I'm expected to type the line.  How do I actually get the text
> inserted from the stored procedure?  Do I have to define a map!
> command to do it and then execute it or is there a more elegant way? 

It's not elegant, but manipulating the $line value directly is the
way I've done scripting.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]