Live data from Hacker News

Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

slashusr.wordpress.com

61–66 of 66 posts

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#61
post #57

I've been a vim user for about 10 years now. I've recently started using emacs for lisp/SLIME dev. The number one feature I miss when I'm in emacs land is vim's "i" and "a" commands. di" deletes everything between the double quotes. da" deletes everything between including the double quotes themselves It works with other matching pairs as well (ie di(, di[ di'). I use it constantly. I've searched and search, and have…

In Emacs you have kill-sexp, that works for balanced expressions [1]. Despite the lispy name, it works for any mode.

[1] http://www.gnu.org/s/libtool/manual/emacs/Expressions.html

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#62
post #36

Earlier quoted context omitted.

Your understanding is very much flawed. (FYI, Emacs has been my primary editor for 5 years and Vim has been my over-ssh editor for 6) Your guitar analogy is more applicable not between Emacs and Vim but between something like pico/nano and vim/emacs. It's hard to find a good analogy between Emacs and Vim because they are both awesome editors for many different reasons. Emacs (due to its LISP origins) is highly config…

You're acting like I've never heard of either Emacs or Vim before, and you shouldn't do that. The net effect is to make HN less fun and less useful for everyone. Because the next time I think about starting a conversation on, say, similarities and differences between successful, competing software packages and the cognitive models they encourage... I'll remember that this time, when I tried to keep my opening post fr…

Is this in response to my other comment or this direct comment? Nothing about the comment you are responding to here is attacking you. Your understanding (or writing, as I said) is flawed. Maybe you aren't a noob and you just aren't expressing yourself well enough.

Your comment wasn't "unfriendly" it just wasn't enlightening. I did not assume you were an idiot and no where in my comment did I insinuate that.

Nothing about an .emacs.d proves you are a competent emacs user - I've seen some hideous init files come from Emacs noobs and hideous init files come from power users!

Depends on what you mean by jokes - Hacker News (less so now than a few years ago) tends to be a serious forum for discussion; reddit-esque joking around is both frowned upon and discouraged. Although, TBH I didn't see any "jokes" coming from you at all. I wasn't responding to your jokes (unless you're talking about my other comment in response to you).

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#63
post #48

I used emacs for a while, but fairly recently I switched to vim for one simple reason: opening speed. Emacs always takes a while to launch, but no matter how many plugins and whatnot I install in Vim it always launches instantly. And that, to me, is worth learning a new editor.

Launch it in server mode at startup then use emacsclient: http://www.emacswiki.org/emacs/EmacsClient

I don't like that because it forces all of my editing into one terminal window (or into GUI emacs if I use that as the server). I want to be able to pop open emacs in other terminal windows quickly.

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#64
post #49
post #48

I used emacs for a while, but fairly recently I switched to vim for one simple reason: opening speed. Emacs always takes a while to launch, but no matter how many plugins and whatnot I install in Vim it always launches instantly. And that, to me, is worth learning a new editor.

Are you opening emacs with -nw? That will load it within the terminal, like vim. It loads within a second for me, and I have a sizable .emacs.

Most of the time I'm just running /usr/bin/emacs which is non-GUI by default. A fast boot for me is about a second, a cold boot is a couple seconds. That's acceptable if I'm doing editing that will take a while, but it's interminable when I'm expecting to pop in and out of the editor frequently (e.g. writing very quick git commit messages). Vim's fast boot is near-instantaneous, and the cold boot is less than a second.

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#65
post #9

Earlier quoted context omitted.

Another great addition is: http://vim.wikia.com/wiki/Avoid_the_escape_key Getting out of insert mode with a double j instead of moving your hand (esc) or doing the slightly awkward ctrl+[ is a godsend.

Another good alternative is to remap the infrequently used Caps-Lock key to Esc (what Emacs users remapped to Control for ages). http://c2.com/cgi/wiki?RemapCapsLock

I write a lot of shell scripts and C where $UPPER_CASE variables are common. Is it still worth remapping Caps-Lock? (The problem is it would be remapped system-wide, not just in Vim.)

Re: Heretical Confessions of an Emacs Addict – Joy of the Vim Text Editor « /usr

#66
post #62

Earlier quoted context omitted.

You're acting like I've never heard of either Emacs or Vim before, and you shouldn't do that. The net effect is to make HN less fun and less useful for everyone. Because the next time I think about starting a conversation on, say, similarities and differences between successful, competing software packages and the cognitive models they encourage... I'll remember that this time, when I tried to keep my opening post fr…

Is this in response to my other comment or this direct comment? Nothing about the comment you are responding to here is attacking you. Your understanding (or writing, as I said) is flawed. Maybe you aren't a noob and you just aren't expressing yourself well enough. Your comment wasn't "unfriendly" it just wasn't enlightening. I did not assume you were an idiot and no where in my comment did I insinuate that. Nothing…

First, phrases like "your understanding is flawed" and "maybe you just aren't expressing yourself well enough" are way outside the bounds of civil conversation.

Second, how would you unpack this sentence?

"Aren't black and white basically the same color these days?"

Post reply on HN