4 ms·
'v' will start the visual editor. 'fc' will edit the previous command. Both invoke EDITOR in bash's vi readline command mode. I wasn't aware that bash and zsh
by 6c696e7578 3y ago
'v' will start the visual editor. 'fc' will edit the previous command. Both invoke EDITOR in bash's vi readline command mode.
I wasn't aware that bash and zsh did it differently, I assumed they'd both use the same readline - now I'm aware there's more to understand about it :)
- cassepipe 3y agoHa my bad I assumed zsh because I saw the `bind` command being used. I did not know that it was also in bash I find that zsh's mode is actually better than readline's For example it can handle visual mode which is why the same function is `vv` and not just `v` Zsh can handle text objects too, very useful to be able to ci" for example Fish's can too and is quite good IIRC Too bad the `v` command does not work in gdb so it seems it's more of a bash thing than a readline thing Relevant : https://superuser.com/questions/1543120/make-readline-edit-input-command-in-external-editor-similar-behavior-as-edit-a https://superuser.com/questions/1543120/make-readline-edit-i...