Execute a screen line

rconn

Administrator
Staff member
May 14, 2008
10,532
94
#1
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.

nickles on December 04, 2015 08:15