3 ms·
C-x C-e to edit the command line with EDITOR=vim in your .bashrc (or whereever you keep your configurations). When it quits it'll run the command for you. You d
by Jtsummers 10y ago
C-x C-e to edit the command line with EDITOR=vim in your .bashrc (or whereever you keep your configurations). When it quits it'll run the command for you. You don't need to join the lines. It's like a temporary shell script.
$ C-x C-e
# in vim
ipushd dir
do stuff
popd
<esc>:wq
Everything gets run.