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 - superuser.com/questions/144666/…bash
in the top answer...