Here's something I find myself doing often:less super/long/file/nameFollowed by:vim super/long/file/nameIs there an easy way to pass the args of the previous command over to the next? SO I'd like to do something likevim !!!And have it automatically open super/long/file/name in vim.
Use same arguments with different command
bash;command history
Using !$ should work to access the last argument of the previous command in the bash shell:less super/long/file/namevim !$Also Meta + . or Esc + . can be used to paste the last argument if the readline library is enabled in emacs mode (default option).