1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Execute a screen line

Discussion in 'Suggestions' started by rconn, Sep 8, 2016.

  1. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,021
    Likes Received:
    84
    Execute a screen line

    Sometimes after retrieving a list of files (like after dir /b), I would like to

    1) place the cursor in a result line
    2) switch to insert mode (or not)
    3) add/change some part of the cursor line (just this one!)
    4) execute the resulting cursor line as a command line

    This is a common possibility on IBM or SNI terminals.

    Sample

    dir /b *.txt

    ...
    a.txt
    b.txt
    c.txt

    Placing the cursor in the line with b.txt, I could e.g. do a "vi b.txt" after inserting just "vi " before b.txt.

    [​IMG]nickles on December 04, 2015 08:15
     

Share This Page