prezto
prezto copied to clipboard
bindkey for edit-command-line
Description
The standard prezto bindkey for editing the command line in Vim is ctrl-X ctrl-E
. I wish to change this to ctrl-X ctrl-X
and have added this lines to my zshrc:
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^x^x' edit-command-line
bindkey | grep edit
produces:
"^Q" push-line-or-edit
"^X^X" edit-command-line
"^[Q" push-line-or-edit
"^[q" push-line-or-edit
Expected behavior
When editing the command line and pressing ctrl-X ctrl-X
, vim should open and the current command line inserted into vim
Actual behavior
Nothing happens
Steps to Reproduce
Add the code lines above to zshrc
Versions
- Prezto commit: 5d7c990eec21e83c0735f6b8e7d1d669102cbb4f
- ZSH version: 5.7.1
- OS information: 10.14.5
Those exact lines worked for me. What terminal are you using?
@pdoak: I have the exact same keys in my setup and I face no issues. Do you still face issues with bindkey, if not can we kindly close this issue?
It's been a year and there hasn't been a response yet, so I'm going to close this. If you're still experiencing trouble, please feel free to file a new issue.
@belak: thanks! Trying to do some spring cleaning on issues which have been unresponsive.