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
Written by Dmytro Yashkir
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#