I recently discovered terminal's feature, you can set the keys emacs
or vi
style
I prefer the second. so if you do
set -o vi
You can use k j l h
keys to navigate on the command line. And you can switch between 'Normal' and 'Insert' modes like in vim
.
However there's no way to visually distinguish one mode from another, even cursor doesn't change. Which makes vi-style pretty much useless. Is there a way to make it truly vim
-like?
Terminal
actually does - http://superuser.com/questions/144666/what-is-the-difference-between-shell-console-and-terminal – Graeme Feb 23 '14 at 18:30bash
in the top answer... – Graeme Feb 23 '14 at 18:38