Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh: complete $PATH specs / emacs keybindings when editor is vi

2008/5/29 Edd Barrett <vext01@xxxxxxxxx>:
> Hi there,
> I am new here, hello. I have been using zsh on OpenBSD as my default
> shell for about one year now and it is almost perfect for my needs.
> I have 2 queries which I have been unable to answer via FAQ/man pages
> (unless i missed them in which case sorry):
> 1) Can zsh expand paths separated by colons. This is useful when
> for example:
> export PATH=$PATH:/usr/local/b<TAB>
> should expand to:
> export PATH=$PATH:/usr/local/bin/

It does here, I don't know why it doesn't for you, unless you haven't
initialized the completion system at all.

> 2) I love vi/vim and have never used emacs. However I am used to emacs
> shell bindings (^A/^E = begin/end of line) from when i used to use
> ksh. Can i use these keybindings whilst EDITOR=vim?

To make the keybindings like they are when EDITOR=emacs, just run
bindkey -e. To make those two specific binds only, you can use bindkey
'^A' beginning-of-line; bindkey '^E' end-of-line.

Mikael Magnusson

Messages sorted by: Reverse Date, Date, Thread, Author