Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I quite like the Vi mode of bash. Is there any way to make it work in other programs (gnuplot for instance)?

EDIT: As Shawn suggested below, configuring .inputrc and using rlwrap -a -c gnuplot gives Vi mode for gnuplot.

share|improve this question
up vote 9 down vote accepted

You can use this mode in any program that uses the readline library by adding set editing-mode vi to ~/.inputrc.

You can also use rlwrap to make other programs use readline.

share|improve this answer
Also works with bash. This is my default editing mode in bash. – Arcege Oct 17 '11 at 1:51

Vimperator is a good plugin for Firefox. The Chrome equivalent is called vrome.

share|improve this answer
Also worth checking out: Pentadactyl (Firefox) and Vimium (Chrome). – Shawn J. Goff Oct 17 '11 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.