TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why I switched from Vim to Emacs

104 pointsby wtbobover 8 years ago

17 comments

pmoriartyover 8 years ago
<i>&quot;If you wanted to modify this in a traditional terminal emulator, you would probably use the up arrow to retrieve the last command, use the left arrow (or Ctrl-Home) to get to the beginning of line to modify ‘rn’, then use the right arrow (perhaps in combination with Ctrl) to modify the second instance of folder 1.&quot;</i><p>Not so. You can just type &quot;set -o vi&quot; in your shell, and do pretty much what the OP does in emacs. So wanting to do this kind of editing in the shell is not really a very good reason to switch to emacs. There are much better reasons for doing that.
评论 #13134609 未加载
评论 #13132263 未加载
评论 #13132618 未加载
mi100haelover 8 years ago
<i>&gt; The Vim&#x2F;Emacs debate is often heated, but from what I can tell, Emacs users are more passionate. There are a number of Emacs meetups around the country where users share their setup and demonstrate useful tricks.</i><p>That&#x27;s just because Vim users are actually getting work done rather than going to help sessions for their configuration.
评论 #13138568 未加载
VT_Drewover 8 years ago
I will give Emacs a try once I figure out how to exit Vim.
评论 #13135840 未加载
评论 #13134658 未加载
pklauslerover 8 years ago
I finally wrote my own editor so that I&#x27;d have something that works exactly the way that I want an editor to work. I don&#x27;t need a built-in e-mail reader or ELIZA clone or scripting language, just really good interaction with UNIX text processing commands.
评论 #13132716 未加载
评论 #13132091 未加载
评论 #13136937 未加载
falcolasover 8 years ago
I tried the conversion to Emacs using Spacemacs, but it repeatedly froze up on me, something deep inside locked in a tight loop, turning my laptop into a space heater. No custom plugins, using only a smattering of Spacemacs provided modes.<p>I went back and tried it again some two major versions later, with the same problem. I eventually narrowed it down to the Go major mode, but I didn&#x27;t have the perseverance to continue. Not when the same Go integrations were working just fine in Vim.<p>Oh, yeah, and it still bugs me that Evil mode treats C-] word boundaries differently than Emacs M-. (which actually matches how Vim&#x27;s word boundaries work by default).
评论 #13135492 未加载
评论 #13134170 未加载
mxvzrover 8 years ago
I see no mention of the emacs daemon [1] which I&#x27;ve found very useful in resource constrained environments (ie. tiny VMs or underpowered chromebooks). That&#x27;s especially true if you bring out the big guns like Spacemacs.<p>[1] <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;index.php&#x2F;Emacs#As_a_daemon" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;index.php&#x2F;Emacs#As_a_daemon</a>
评论 #13138358 未加载
mellingover 8 years ago
He still uses vim bindings. Emacs is an editor construction kit. It can become vim, or another editor.<p>What we really need is a 21st century editor construction kit with Minority Report gestures, eye tracking, and voice input, as well as the keyboard.
评论 #13132636 未加载
评论 #13132236 未加载
评论 #13132372 未加载
huacover 8 years ago
I&#x27;m considering picking up Spacemacs just for org-mode. Is there anything for vim that can match those kinds of capabilities?
评论 #13131842 未加载
评论 #13139499 未加载
评论 #13134190 未加载
评论 #13133400 未加载
kazinatorover 8 years ago
Funny, I&#x27;m a huge Lisper, yet I don&#x27;t use Emacs. Conversely, I met people who would live and die by Emacs, who didn&#x27;t know any Lisp, Emacs or otherwise.<p>I&#x27;m worried that if I started using Emacs, I&#x27;d start hacking the Elisp (which I&#x27;d be terribly good at), and hate the lack of lexical scope, etc.<p>I had some nice exchanges with Stefan; we discussed the implementation of generalized places not long ago:<p><a href="https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!msg&#x2F;comp.lang.lisp&#x2F;5By5NL4cXWk&#x2F;xis1dsgKAQAJ" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!msg&#x2F;comp.lang.lisp&#x2F;5By5NL4...</a><p>In TXR Lisp I implemented places in quite a different way from CL SETF expanders; from Stefan&#x27;s comments I was informed that Emacs&#x27; &quot;gv.el&quot; is doing it in a similar way to my approach.
评论 #13135996 未加载
qwertyuiop924over 8 years ago
To this day, I&#x27;m pretty sure Emacs is the best development environment for dynamic languages (save maybe the LispM or the Smalltalk IDE, but that&#x27;s another story), because it really embraces the REPL, something that seems to be against the trend with most IDEs.
mikestewover 8 years ago
Just a matter of what you want your tool to do, and how much you&#x27;re willing to put up with. Do you really want a <i>meetup</i> for your editor? Are you willing to change operating systems just to make it easier to install your editor? Versus the &quot;nightmare&quot; of having to download something? (I can&#x27;t tell if the author is being sarcastic or not in complaining about something that could be scripted.) Do you want to edit text, or play Tetris? Do you want to live inside your editor, or is it just one piece in a larger puzzle? Do you like to endlessly fiddle with your configuration, or get work done?<p>I&#x27;m not saying either one is right. To me, it&#x27;s kind of like Android vs. iPhone. Some are annoyed that they can&#x27;t change the font weight on the wireless settings screen on iPhone. Some just want to connect to the network. Some want a Swiss army knife, some just want a sharp blade. The same argument has gone on for thirty years, but we collectively pretend we&#x27;ve brought something new to the table every time the subject comes up.
评论 #13132545 未加载
评论 #13132384 未加载
评论 #13131675 未加载
pmoriartyover 8 years ago
I&#x27;ve used vim (vi and some other vi colones before that) for over 25 years, and switched mostly to emacs (with evil) about 6 years ago or so.<p>One of the main reasons I switched was because I fell in love with Scheme (and Lisp before that), and loved the idea of an editor that was fully integrated with Lisp, was scripted in Lisp, was mostly even written in Lisp, and had powerful Lisp-editing modes like Slime. It is possible to script vim through Scheme, but 99% of vim&#x27;s scripts are written in vimscript, and that&#x27;s really what the vim ecosystem is designed around. So emacs was a clear winner here.<p>I also liked the idea of having email, web browsing, RSS news reading, IRC, Usenet, the shell, and more fully integrated in to the editor. Ideally, every app would be integrated in to my editor, and I&#x27;d love to command them all from within there. This is more or less what emacs promised.<p>org-mode was another big draw. It seemed cool, and I wanted to find out if it was really as big a deal as everyone said. It is. All my note-taking is now in org, and I intend to move my browser bookmarks to it too. I&#x27;ve since tried various org-mode clones in vim, and they&#x27;re not nearly as good.<p>Finally, what really won me over was evil-mode, which allowed me to keep my decades of vim muscle memory and preference for modal editing.<p>I spent several months, spending 10 hours a day to customize emacs the way I liked it, and to bring it mostly up to parity with my vim config (which was thousands and thousands of lines long), along with customizing some emacs extensions that had no vim equivalent (like emacs-w3m, which is an embedded web browser, which is still super handy despite not working with javascript). It took that long despite me knowing Common Lisp and Scheme before switching to emacs, which made learning Elisp a breeze compared to the extra effort it would take someone coming from vim who didn&#x27;t know any Lisp.<p>And still, even after all that work, I haven&#x27;t gotten around to learning and customizing many of the things I really want to use emacs for, like email, IRC, RSS, Slime, and the various other extensions made for editing Lisp and Scheme.<p>So I found the switch to be a ton of work, which was worth it for me, since I&#x27;m still using emacs instead of vim, and don&#x27;t intend to switch back. But others who are considering a switch from vim to emacs should also be prepared to do a lot of work customizing emacs to your liking. It&#x27;s a never-ending process, really, just as it is with vim.<p>Even though I&#x27;ve switched to emacs as my primary editor, I still use both. Each have their strengths and weaknesses, and I still love vim (which comes in handy in certain situations where emacs just isn&#x27;t cutting it for me).
nonsinceover 8 years ago
I discovered spacemacs literally days ago, and had this exact experience almost word-for-word. Interesting that this article should appear now. Loving spacemacs so far, I actually prefer its keybindings to vim&#x27;s, even though the space-prefixed style was what kept me away from it when I first discovered it.
stakedover 8 years ago
Even though I&#x27;ve been happy with Vi&#x2F;Vim for 15+ years I&#x27;ve always been intrigued by all of the &quot;extras&quot; Emacs can do.<p>Any recommendations on guides integrating email&#x2F;IRC&#x2F;RSS into an Emacs workflow?
评论 #13132613 未加载
Dowwieover 8 years ago
I thought political posts were off limits this week?
评论 #13131337 未加载
评论 #13132172 未加载
adictatorover 8 years ago
Being a long time Vim user, and having dabbled in Emacs just a teeny weeny bit, I&#x27;m convinced that &quot;Emacs is a wonderful operating system, lacking only a decent editor&quot;!
评论 #13135386 未加载
评论 #13134227 未加载
sshrinivasanover 8 years ago
Its almost 2017. Nobody cares.
评论 #13132009 未加载
评论 #13132578 未加载
评论 #13132630 未加载
评论 #13132689 未加载