rconn
Administrator
- May
- 13,079
- 200
Staff member
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
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.
![4123e764c611a63b8f1af6e5c1705324](https://secure.gravatar.com/avatar/4123e764c611a63b8f1af6e5c1705324?size=16&default=https://assets0.uvcdn.com/pkg/admin/icons/user_70-62136f6de7efc58cc79dabcfed799c01.png)