thanks alex! It works perfectly

On Mon, Aug 31, 2020, 01:12 Alexander Burger <[email protected]> wrote:

> Hi Bruno,
>
> > In vip, if I have a file like:
> > _____________________
> > # file with a single line of code
> > (prin "print me on the command window")
> > ___________________
> >
> > is there a way to select the line with the code and send it to the
> command
> > window for execution, like slime for emacs?
>
> Yes. Lisp expressions can be evaluaded in the command window by starting
> the
> line with a colon followed by a space. Without a space they are taken as a
> normal editor commands like ":e" or ":w".
>
> In Vip, the command window is a normal editor window. You can resize it
> with "+"
> and "-", and change the focus to it with "qj".
>
> Thus, to do what you ask above, copy the line with "yy", go to the command
> window, and type ":I: " to insert ": ", and hit <return>.
>
> You can edit all lines in the command window by going up with "k", and re-
> executing them by pressing <return>.
>
> To go directly from a normal edit window to the command window, you can
> also use
> ":" (like in Vim) or <space>. Both print a ccolon. "/" is like in Vim, and
> "&"
> is similar but searches for Lisp words instead of normal (sub)strings:
> "&abcd"
> is analog to Vim's "/\<abcd\>".
>
> >From a normal edit window, typing two spaces, an expression, and <return>
> will
> evaluate it and immediately change the focus back to the original window.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>

Reply via email to