In ksh/bash use the following at the command line (or in ~/.profile or ~/.bash_profile):
set -o vi
If your on linux, Mac OS, *BSD you can put the following in ~/.inputrc (or /etc/inputrc for system wide), this will work for most command line programs that use the readline library (eg ftp, bash, etc).