Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's nice, but it only affects the command line.

Instead of that, create the following file:

~/.inputrc (tilde slash dot-inputrc)

And in that file put at least this:

set editing-mode vi

Now every program that you run that a) has its own command line, and b) uses the readline library (there are a lot) has vi commandline editing. psql, mysql, telnet, lftp, and many more.

man bash has a section on READLINE. For example, in man bash search for

editing-mode



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: