Question

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?

Was it helpful?

Solution

Hmmm... IIRC, tcsh uses a command called bindkey. Try bindkey -v at the command line. Then hit escape followed by v. It's been a while since I used tcsh so the details are a bit fuzzy. When in doubt, Google it.

OTHER TIPS

A little explanation for the uninitiated.

bindkey -v

puts you in vi-mode (oh yeah!)

and hitting v from there would take you to $EDITOR -- and all is good with the world from there on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top