Last Updated: February 25, 2016
·
1.384K
· dyashkir

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

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 ·