@schpet set -o vi, if I remember correctly
6 comments
@schpet oh! Hmmmm… sounds like you’d have to replace or hook into readline. Sorry no idea. @alloydflanagan huh – so after looking into a bit i found out that bash supports this via ctrl-x-e: **edit-and-execute-command (C-x C-e)** this... is something i would have liked to have known a decade ago. now i need to find the equivalent in fish @alloydflanagan OK, i think it's `Alt`+`E` but for whatever reason alt is giving me grief on a mac https://fishshell.com/docs/current/interactive.html#shared-bindings > Alt+E edit the current command line in an external editor. The editor is chosen from the first available of the `$VISUAL` or `$EDITOR` variables. @alloydflanagan wrote this up here: so happy to figure this out @schpet I didn’t know that one either. They didn’t borrow that one from Emacs. There, it runs the current LISP expression. |
@alloydflanagan i think that switches your shell permanently into vim keybindings (right?) – i'm more looking for something that opens up $EDITOR to edit the command