Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping word-complete to escape key

Status
Not open for further replies.

stackdump

Technical User
Sep 21, 2004
278
GB

Hi all,

Im trying to map the 'word-complete' (or autocomplete) function to the 'esc' key. I currently use "bindkey -v" to map the vi key bindings and this bind set uses 'tab' as the autocomplete key.

If I try to map the tab function to the escape key using "bindkey -b ^[ word-complete" I can turn the escape key into autocomplete as well as the tab key, but at the same time I lose the up-history and down-history on the up/down arrow keys.

What am I doing wrong?


 
I believe the up and down arrow keys are sending an escape sequence which start with an escape, which is being stolen by the new binding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top