Afficher un message
Vieux 25/05/2007, 11h30   #2
Martin Krischik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bash: How to use 'set -o vi' and still be able to use ctrl-a,ctrl-e etc.

Erik Terpstra schrieb:
> Is it possible to use VI mode in bash and still be able to use ctrl-a,
> ctrl-e, ctrl-l and ctrl-w like they work in Emacs mode? These key
> sequences are hard wired into my brain after using emacs mode in the
> shell for such a long time.
>
> Most ctrl-<key> sequences don't seem to conflict with the VI key
> sequences, is it possible to make them available in the VI mode?


Well, I did something similar for Z-Shell [1] - basily by remapping the
keys after activating the vi mode. AFAIK in bash the .inputrc file is
used for that purpose.

I would suggest you create a .inputrc (there is a tool the generate an
initial version) for emacs and for vi mode and then compare them. That
is the way I did if for Z-Shell.

Martin

[1] http://martin.krischik.com/index.php/Z-Shell/VimMode
--
Martin Krischik
  Réponse avec citation
 
Page generated in 0,04439 seconds with 9 queries