Vi bindings

less than 1 minute read

I cut my UNIX teeth as an AIX SysAdmin and developer. I moved onto Linux, FreeBSD and OS X, but my beginnings laid the foundation for how I like my system set up. Most notably, I want vi bindings on the command line.

set -o vi

Is a mainstay in my .profile and the first thing I type when signing into a foreign system. But I’ve always been suffering when I start up a command line client (irb, psql, sqlplus, gqlplus). I have to revert to cursor keys and horrible movement commands.

Well no longer!


bind -v


set editing-mode vi