In bash, I frequently do
touch whatever.py
vim whatever.py
I want something like
touch whatever.py
vim !!
So how do I do that with a bash ! directive that eats the first word?
|
In bash, I frequently do
I want something like
So how do I do that with a bash ! directive that eats the first word?
| |||
|
feedback
|
|
Both should work in your example (a command with a single parameter). | |||
|
feedback
|
touchsince vim will create the file if it doesn't exist (after you :w of course). – styfle Jan 6 at 6:19