I found the following command in Bash which Zsh does not have in the same buttons at the thread.
Ctrl-x-e
It opens the current input in terminal to an editor.
How can you have the same command in Zsh?
I found the following command in Bash which Zsh does not have in the same buttons at the thread.
Ctrl-x-e
It opens the current input in terminal to an editor.
How can you have the same command in Zsh?
I'm using it with VIM mode. Basically ESC-v (or simply v if already in command mode) opens the terminal. It is setup by:
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
Here is how to setup it in emacs mode:
autoload edit-command-line
zle -N edit-command-line
bindkey '^Xe' edit-command-line
Use 'bindkey -e’ to to enable emacs style or ‘bindkey -v’ to enable vi style.
bindkey -M vicmd v edit-command-line
with my other bindkeys? –
Rhines If you are using Sublime as your editor then make sure you have -w
option added in .zshrc
or .bashrc
file, otherwise it may won't work.
export EDITOR='subl -w'
© 2022 - 2024 — McMap. All rights reserved.