Today’s Daily Vim says this:
Assuming you’re using the bash shell, the following can be helpful when composing long command lines.
Start typing on the command line and then type Ctrl-x Ctrl-e, it should drop you into your system’s default editor (hopefully Vim) and allow you to edit the command line from there. Once finished, save the command line, and bash will run the command.
Is there any way to do this in tcsh?
Hmmm… IIRC, tcsh uses a command called
bindkey. Trybindkey -vat the command line. Then hit escape followed byv. It’s been a while since I used tcsh so the details are a bit fuzzy. When in doubt, Google it.