Live data from Hacker News

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

slashusr.wordpress.com

31–40 of 66 posts

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

#31
I went the other way around.

I was a long-time Vim user (around 10 years or so) and switched to Emacs in order to use Lisp + Slime in order to win an argument about Lisp. What's important is that I lost that argument, like Lisp, and use Emacs as my primary editor now.

However, the Vim keybindings are still etched upon my soul so I still find myself popping it open for quick-and-dirty edits.

They're both good editors and I like the conclusion of this article.

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

#32

I'm curious if the speed difference between counting how many times to repeat a command versus using movement/visual block/etc. is big enough? I find the "repeat-n-times" modifiers require a lot of thought before I know what number to put before the command. I do consider myself very fast with Vim, but the repeat commands haven't done much for me.

Likewise. I very, very seldom find myself using repetitions. I mostly use simple commands or text objects, and when those don't cover some weird case I fall back to visual mode.

Occasionally I know I want to delete just 2 words and so use d2w or something, but that's so rare I really notice when it happens.

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

#33
post #21

Aren't Emacs and Vim basically the same editor at this point? There are some stylistic differences, which can be surprisingly subtle, like the differences between acoustic and electric guitar. But pretty much every other editor these days wants to be an MP3 player. Today's editor war is between (a.) technical people who expect to spend many hours a day manipulating text for the next few decades, and (b.) people who d…

No. Not in the least bit. Emacs is an interactive Lisp interpreter. Once you realize that you can change function and variable bindings on the fly, you can do anything. Vim is "merely" an editor with an acceptable scripting language and incredible keyboard shortcuts. The shortcuts have survived for 40 years due to their ease of use and intuitive nature. The only similarities between Vim and Emacs are their ages and t…

The only similarities between Vim and Emacs are their ages and the fantastic communities

- both require a large investment to achieve mastery.

- both deliver excellent return on that investment. Proficient use "looks like magic."

- both include (seriously underrated) tutorial software to get new users up and running.

- both are still described as "hard to learn" by people who don't use them.

- both have more popular competitors that are less capable but easier to pick up and use without thinking about it (various IDEs for Emacs, pico/nano for vim).

I don't know what your problem is here, but you'd do better stating it outright. As it is, you're just embarrassing yourself. If age and community are the only similarities between Vim and and Emacs, the one of them is not a Unix text editor.

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

#34
post #2

So I use emacs with viper and it's great. I have no idea how to really edit text in emacs without vi mode and I can't open a file in vim without :q and running it again with a different argument. Yet I can edit text vi style and use superior (to vim) and convenient emacs features like modes, tramp, buffer management, org-mode…

You can try elvis. I havent tried it myself, but I heard it being a continuation of viper and vimpulse efforts.

I've been using it for only few days, but I think evil and Emacs makes a really nice enviroment. I finally managed to get capslock to be the key for evil-normal-state (default is ESC) and the world is a better place now. I recommend giving it a shot :-).

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

#35
post #17

I apologize in advance for this ode to Vim, but I feel I should get it off my chest. I admit, the main reason for me to develop in Vim these days is to simply minimize the number of keystrokes I have to press (and the number of times I have to reach for the mouse), because, due to RSI, I experience a mild, but constant, and noticeable discomfort in my wrists (...and triceps, and shoulder) whenever I type (I distinctl…

Then you'll love http://www.viemu.com/ .... There are so many good things to say about ViEmu that it's hard to know where to begin. I've been a happy ViEmu customer for about three years now. Best $99 I've ever spent, hands-down. Maybe it will suffice to say: "VisualAssist + ViEmu = Someday I should record a video of me coding C++ in Visual Studio. In the last 4 days alone, I've written 8,700 lines of C++. No way cou…

>Someday I should record a video of me coding C++ in Visual Studio.

Please do. It's should not be that difficult to just switch on the recording software and upload it into Youtube. If you could also verbally describe what you're doing and how, would be appreciated.

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

#36

Aren't Emacs and Vim basically the same editor at this point? There are some stylistic differences, which can be surprisingly subtle, like the differences between acoustic and electric guitar. But pretty much every other editor these days wants to be an MP3 player. Today's editor war is between (a.) technical people who expect to spend many hours a day manipulating text for the next few decades, and (b.) people who d…

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 configurable, probably the most configurable piece of software you will ever use that has a large mindshare and presence in the community. Vim is configurable, but Vim's intention from the beginning was to be an efficient editor over SSH; it just so happens people are now using it as their primary editor of choice on their desktops.

With Vim you can't just start editing text right away (like Emacs, Word, TextEdit &c...) you have to switch from the Console Mode into Editing Mode (by pressing "i" on most installs). Then if you want to delete a few words you have to switch back to the Console Mode (by pressing "esc" usually) position your cursor, and enter "wq" until the words you wanted deleted are deleted. This has the benefit of separating commands from text editing so there are no "control" keys as you will see with Emacs.

With Emacs you can edit text right away and there are no "modes" to change. Emacs instead has control keys (the two main ones are "C" and "M" - on your keyboard that's "Control" and "Alt" - I've remapped my control key to be the Caps Lock key since it makes my pinky finger less angry). So if while I'm editing I wanted to delete a few words, I would position my cursor then hold down Alt and press "d" until the words I wanted deleted are deleted (in emacs lingo: "M-d"). This has the benefit of not "context" switching into other modes but it means you now have to be very clever with your key combinations so you don't end up playing Twister! on your keyboard for more complicated tasks (that's why some people prefer Vim because it negates that problem with "modes").

Emacs doesn't want to be an MP3 player - Emacs wants to be whatever the person using it wants it to be. To me that's what wins me over to Emacs; if I need my editor to do something that it doesn't do stock, I have the full power to add/change/remove whatever it is I want it to do. Additionally there's an enormous community of people with far more knowledge and experience in doing that to tap into, plus, if you want it do something it's most likely someone already has done (and done it better).

Vim also doesn't want to be an MP3 player - matter of fact, you would get stoned by the Vim community for saying that, those guys are all about efficiency. I love Vim because of its efficiency - I actually really hate Emacs over SSH (to all those saying "use TRAMP!" I have, and it's not nearly as cool as using Vim over SSH). My editor of choice when working directly on a server editing code is Vim, it's fast, concise, and very powerful.

There is no editor war today - there's the never ending jihad between annoying emacs users and vim users that think their editor of choice is better than the other (I think those people are stupid, because BOTH EDITORS ARE AMAZING and EVERYONE HAS A DIFFERENT PREFERENCE). Technical people use editors that empower them to write software; people who don't want to think about text editing are still keyboard pecking when writing their emails.

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

#37

I'm curious if the speed difference between counting how many times to repeat a command versus using movement/visual block/etc. is big enough? I find the "repeat-n-times" modifiers require a lot of thought before I know what number to put before the command. I do consider myself very fast with Vim, but the repeat commands haven't done much for me.

There's a great deal of power in '.', which repeats the last command. So if you have to do something 12 times, your steps could look something like this;

- Run the command once

- Think "Hmm, looks like I have to do this about ten more times"

- Type '10.', repeating the last command 10 times

- See that there's only one left to do, since you guessed 10 and it was 11

- Press '.' one more time to do the last one

You won't win any vim golf competitions like that, but it's very easy to do.

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

#38
post #21

Earlier quoted context omitted.

No. Not in the least bit. Emacs is an interactive Lisp interpreter. Once you realize that you can change function and variable bindings on the fly, you can do anything. Vim is "merely" an editor with an acceptable scripting language and incredible keyboard shortcuts. The shortcuts have survived for 40 years due to their ease of use and intuitive nature. The only similarities between Vim and Emacs are their ages and t…

The only similarities between Vim and Emacs are their ages and the fantastic communities - both require a large investment to achieve mastery. - both deliver excellent return on that investment. Proficient use "looks like magic." - both include (seriously underrated) tutorial software to get new users up and running. - both are still described as "hard to learn" by people who don't use them. - both have more popular…

You are being too emotional about this conversation between you Nyellin. Your original post was flawed - whether it was your understanding or the way you wrote it (I don't know which).

- both require a large investment to achieve mastery.

You don't have to achieve mastery in order to be productive in Emacs and Vim!!! Use Emacs for a solid month and you will be productive in it (like wise for Vim).

- both deliver excellent return on that investment. Proficient use "looks like magic."

This is true (of more things than just Emacs and Vim).

- both include (seriously underrated) tutorial software to get new users up and running.

This is also true (of more software than just Emacs and Vim).

- both are still described as "hard to learn" by people who don't use them.

Because most people have commitment issues and would prefer their IDE's (just like people who don't know how to use the terminal all of the Unix tools (sed/awk/grep/&c... complain it's "hard to learn").

- both have more popular competitors that are less capable but easier to pick up and use without thinking about it (various IDEs for Emacs, pico/nano for vim).

There are no competitors to Emacs and Vim that I'm aware of (the only one to Emacs I can think of and it still isn't a competitor is Yii); IDE's aren't even in the same camp - IDE's are more project management than editor.

[edit] I take this back, there's one piece of software I remember vaguely that is trying to be an IDE with Emacs/Vim style editing, I'm not sure if it provides the type of editing functionality Emacs and Vim do though.

I don't know what your problem is here, but you'd do better stating it outright. As it is, you're just embarrassing yourself. If age and community are the only similarities between Vim and and Emacs, the one of them is not a Unix text editor.

You're actually the one embarrassing yourself, not because of your lack of knowledge but because of your response! Nyellin gave a perfectly good comment to your flawed comment and you reacted emotionally instead of rationally.

Your reasons above for why they are similar are very much moot points - most of those points can be said for many things other than text editors. See my comment for why they ARE DIFFERENT; Nyellin could have gone into more depth as to why they are different, but ultimately he's kind of right. They have both been around forever, they both have HUGE, vibrant, and passionate communities, and they both edit text.

Please note, we are talking about "text editing" and not the gobldegook that is IDE "project management" (IDE's aren't proper text editors, they are stunted text editors).

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

#39

I'm curious if the speed difference between counting how many times to repeat a command versus using movement/visual block/etc. is big enough? I find the "repeat-n-times" modifiers require a lot of thought before I know what number to put before the command. I do consider myself very fast with Vim, but the repeat commands haven't done much for me.

What I do regularly is to record a macro that combines some action with a movement. For example, I have some file with many many lines that need to be changed in a very similar fashion. (Recent example: ten comma separated numbers per line, all wrong by a factor of ten, 100 lines of those).

I will record that macro, then repeat it 100 times. Since every command includes a movement at the end (say, a "j"), this will change 100 lines (or words, or regex finds, or whatever).

Damn, I instinctively hit after writing that last line.

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

#40

Aren't Emacs and Vim basically the same editor at this point? There are some stylistic differences, which can be surprisingly subtle, like the differences between acoustic and electric guitar. But pretty much every other editor these days wants to be an MP3 player. Today's editor war is between (a.) technical people who expect to spend many hours a day manipulating text for the next few decades, and (b.) people who d…

But... emacs is also an mp3 player :)
Post reply on HN