I decided, about a year ago, after 20 years of working almost exclusively in vi and its spawn, to force myself to use emacs for a full year. I finally realized after 9 months that my productivity was so negatively impacted, I couldn't continue the experiment and finally let myself return to vi(m). God, it was a glorious feeling to come home.
Have you used fugitive to any good extent? I'd love to get a comparison..
I think my favourite thing in fugitive is merging/patch-commit with vimdiff, where you get a really nice side-by-side view and can easily skip from chunk to chunk and include exclude with ease, or actually edit things manually to get sub-chunk control of your merge/patch-commit.
The thing about evil is that, though the keybindings are great for the main editor, you have to rebind fucking everything if you want to use some plugins.
I recently changed my nav keys from C-N, P, F, B to C-K, I, J, L. I did it via (define-key key-translation-map (kbd "C-N") (kbd "C-K")), repeating for each direction, and for each M-N, et, al, and it seems to work almost everywhere, even navigating up and down company-mode suggestions.
I don't really know Vim, and I don't know how Evil-mode works, so maybe that's useless. Iunno.
So that Evil is used only in programming modes and you have the regular Emacs bindings for the utility modes. I don't use Evil anymore, but when I did it worked nicely.
I had the opposite experience, though I didn't use vim for nearly as long as you did. I used vim early in my unix days for around 4 years before deciding to try emacs. 10 years later I now find myself avoiding vim. I can use vim if I have to, but memories of accidentally typing without first putting myself in insert mode haunt me so much that, even if emacs is unavailable, I'd rather reach for nano for a quick system file edit.
"oh dear, what commands did I just run. Let's hit 'u' a few times. Seems ok? But how can I really be sure? sigh I'll just :q! and start over to be safe".
Modern versions of vim will tell you if you've undone everything since the last save. You can also use :e to reopen the file. Of course, you'll not remember this, because no one knows every vim command. I only remember :e every few years and it looks like I won't again for a few more now. :)
Using vim on a high-latency line is very dangerous for that reason. But the fact that it's so dangerous speaks loads about how efficient it can be if you learn to use it correctly.
Even as a long-time Vim user, I am, too, guilty of spamming u and C-r a couple of times in each direction to ensure that I haven't messed anything up, but to me that's a very small price to pay. I can't mess anything up too bad because git will tell me exactly what I did if I did something I didn't want to.
Strange, I use vi when I don't have emacs installed and I have yet to see a productivity increase. The one thing I hate about emacs is I can't paste text with tabs in it without completely destroying the text that I'm pasting.
116
u/[deleted] Sep 24 '15
I decided, about a year ago, after 20 years of working almost exclusively in vi and its spawn, to force myself to use emacs for a full year. I finally realized after 9 months that my productivity was so negatively impacted, I couldn't continue the experiment and finally let myself return to vi(m). God, it was a glorious feeling to come home.