prezto icon indicating copy to clipboard operation
prezto copied to clipboard

bindkey for edit-command-line

Open pdoak opened this issue 5 years ago • 4 comments

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

pdoak avatar May 26 '19 18:05 pdoak

Those exact lines worked for me. What terminal are you using?

belak avatar Jan 20 '20 16:01 belak

@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?

srijanshetty avatar May 24 '20 15:05 srijanshetty

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 avatar May 26 '20 17:05 belak

@belak: thanks! Trying to do some spring cleaning on issues which have been unresponsive.

srijanshetty avatar May 26 '20 17:05 srijanshetty