Last Updated: February 25, 2016
· dyashkir
Ab47d084 59de 496d 95ab c275e3f25560 14 15 56 949

Use VIM as your command line editor

use this command or add it to your .bash_profile

set -o vi

now you can edit your command line with vi

Say Thanks

1 Response
Add your response


This actually set bash to use vi mode which emulates vi (not vim) commands, especially movement commands instead of the default emacs mode.

To use actual Vim instead, have: export EDITOR='vim' inside your preferred bash config file and press Ctrl + x Ctrl + e

More info here: http://unix.stackexchange.com/questions/4859/visual-vs-editor-whats-the-difference

over 1 year ago ·