4 ms·
I've been a (n)vim user for 20+ years now, but I hate vi-mode in the shell. However if I feel that I need to do a complex command, I just do ctrl-x+e to open up
by commandersaki 7mo ago
I've been a (n)vim user for 20+ years now, but I hate vi-mode in the shell. However if I feel that I need to do a complex command, I just do ctrl-x+e to open up in neovim (with EDITOR=nvim set). I find it a good middle ground.
- sudonem 7mo agoAgree. I WANT to love it - and if I was only ever working on one, or a small number of systems that I was the only one working on I’d probably do it. I’m ALL about customizing my environment. However ssh into various servers through the day (some of which are totally ephemeral), and having to code switch my brain back and forth between vim mode and emacs mode in the shell would just slow me down and be infuriating each time I connect to a new box.
- xtiansimon 7mo agoHuh. I don’t use vi-mode for more than jumping to the beginning or end of a line, which I like a lot.
- irishcoffee 7mo agoYou mean, like the “home” and “end” buttons?
- deleted 7mo ago[deleted]
- wholinator2 7mo agoYeah but those are so far away, i have to hunt for them every time
- wbrd 7mo agoI'm a vim user but in the shell I use Ctrl-a and Ctrl-e to get to the beginning and end. If I need more editing I use Ctrl-x Ctrl-e to hop into vim.
- void-star 7mo agoIt really shines for navigating history. <esc>/ searches history the same way as the editor search function
- School-Cotton 7mo agoC-a and C-e are your friend.
- busfahrer 7mo agoI'm the same and in my opinion this is the best of both worlds. Taking the time to learn some of the regular (emacs-style) shortcuts is one of the best investments I've ever done. Even just CTRL+Y and the likes. edit: And of course, CTRL+R, the best time saver of all
- void-star 7mo agoIt’s strange. I have heard this from lots of others too. I think I am an anomaly here. I can’t live without shell vi mode
- fp64 7mo agoYou're not alone, I heavily rely on vi mode and often struggle if I'm on someone else's machine and can't use it. I always wonder how you're supposed to work without it but I never dare to ask
- Linux-Fan 7mo ago`set -o vi` is quickly typed in anger...
- lenkite 7mo agoSame - shell vi mode is critical for intensive terminal sessions.
- dbacar 7mo agoit is an additional burden to switch to shell vi mode, it is not the standard. Maybe you can put it in all of yout bashrc files but you will probably hear some swearing from the people logging to your machines :).
- helterskelter 7mo agoI used to hate it because I'd sometimes change modes without realizing it, but I began to appreciate it a lot more when I added a mode indicator -- a red 'N' on the rightmost side of the input line.
- looshch 7mo agoagreed, i use neovim as a terminal multiplexer because vi-mode is really bad. I wrote a blog post on how i solved the issue for myself https://loosh.ch/blog/neovidenal https://loosh.ch/blog/neovidenal