I just saw a video where a guy were doing some commands and then he needed to edit the command that he was currently typing in the console.
It looked like he was doing some shortcut and the line that he was typing appeared in a vim buffer, ready for editing and execution.
I am using zsh and my terminals of choice are termite and urxvt. I was wondering how to do this.
- Is it necessary to use a plugin or can it be done in a simple way?
- Is it depending on the terminal used or can I just use the shell (zsh)
Thank you in advance
I guess what you mean is
set -o vion Bash. It will open Vim to edit the current buffer of the terminal.Zsh doesn't open Vim if above commands are executed. But it simulates vim on the terminal instead, and I think it is enough for in many cases.
As far as I know, Zsh does not support such the behavior like Bash by default.
I found the similar discussion in reddit and it may help you.