How To Repeat Last Argument in Last Command
Background
Suppose you are going to enter:
cp test.log test.bak
vim test.log
How To
- Enter
cp test.log test.bak
- Enter
vim[space]
- Enter
Alt+1
, holdAlt
and press.
Obtain other argument
Modify with Alt+[numbers]
, for the first one use Alt+0
Limitation
Only work in emacs
mode.
set -o emacs