There’s also !!, which is handy when you type a command that requires sudo, you can just do sudo !! to repeat the last command with sudo prefixed.
Also, if you know emacs shortcuts (ctrl-a, ctrl-e, ctrl-l, etc), you know bash shortcuts, and the other way around - you can also replace those with vim shortcuts, but I don’t like that. It breaks my brain, even though I like vim.
There’s also
!!, which is handy when you type a command that requires sudo, you can just dosudo !!to repeat the last command withsudoprefixed.Also, if you know
emacsshortcuts (ctrl-a,ctrl-e,ctrl-l, etc), you know bash shortcuts, and the other way around - you can also replace those with vim shortcuts, but I don’t like that. It breaks my brain, even though I like vim.