|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? TIA, Erik. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|