What about the old and true set -o vi, this puts your command line in vi mode. I can easily recall a lengthy command with esc k ( puts me into command mode) then / , or if I want to edit a word three words in I type 3w, cw, then type the new word. I find this much easier to use than the standard conventions taught in Linux today. It seems to be a forgotten art. I can do it in less keystrokes. w moves you over one word at a time and b moves you back on word at a time. You can use ^ to get to the start of a line and $ to get to the end of the line. I could go on and on it’s very efficient.
I'm very much a fan of vim hotkeys! But while I've tried set -o vi before, for some reason it felt a bit off for me.
I do like what Peter Benjamin suggested, which is to hit Ctrl+X -> Ctrl+E to send your current command to a real vim buffer for editing. That way I get a full vim experience in the editing environment I'm used to, and only when I explicitly request it.
Anyhow, it's great that both options exist. More choice means everyone's free to pick what suits their workflow!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about the old and true set -o vi, this puts your command line in vi mode. I can easily recall a lengthy command with esc k ( puts me into command mode) then / , or if I want to edit a word three words in I type 3w, cw, then type the new word. I find this much easier to use than the standard conventions taught in Linux today. It seems to be a forgotten art. I can do it in less keystrokes. w moves you over one word at a time and b moves you back on word at a time. You can use ^ to get to the start of a line and $ to get to the end of the line. I could go on and on it’s very efficient.
I'm very much a fan of vim hotkeys! But while I've tried
set -o vi
before, for some reason it felt a bit off for me.I do like what Peter Benjamin suggested, which is to hit Ctrl+X -> Ctrl+E to send your current command to a real vim buffer for editing. That way I get a full vim experience in the editing environment I'm used to, and only when I explicitly request it.
Anyhow, it's great that both options exist. More choice means everyone's free to pick what suits their workflow!