News for hackers. Stuff that matters.
Re:Announcing my free book on Vim by kaens on Wednesday November 26, 2008 @09:45PM (#378358)
I use emacs, and won't be switching to Vim anytime soon, but I'd like to say thanks for writing what seems like a really good book and releasing it for free.

The world needs more of this.

Re:Announcing my free book on Vim by tdavis on Wednesday November 26, 2008 @07:39PM (#378241)
How convenient, considering I am returning to Vim after a very long absence!

Step 1: Start reading online.

Step 2: Buy it because releasing books for free is friendly.

Re:Announcing my free book on Vim by trominos on Wednesday November 26, 2008 @02:57AM (#377408)
Seems great.

Are there any similarly gentle intros to emacs?

Re:Announcing my free book on Vim by davidw on Wednesday November 26, 2008 @06:08AM (#377515)

    M-x help-with-tutorial
Re:Announcing my free book on Vim by silentbicycle on Wednesday November 26, 2008 @11:26AM (#377734)
Which is Emacs keyboard shorthand for, "press Alt-x, let go of Alt, then type help-with-tutorial and press Enter".

If that doesn't work (depending on what Emacs thinks your Alt key is), you can also type Control-H, let go of Control, and then type t.

Re:Announcing my free book on Vim by technoguyrob on Wednesday November 26, 2008 @12:21PM (#377799)
..............

........................

I thought David was kidding. Jesus.

Re:Announcing my free book on Vim by silentbicycle on Wednesday November 26, 2008 @01:01PM (#377842)
Not at all. That's the Emacs crash course: How do you move by charcters/words/lines/sentences/paragraphs/function definitions/..., how do you open/save files, what does 'C-x M-c butterfly' mean, how do you browse the main help system, etc. It probably takes about half an hour to go through.

Emacs is largely self-documenting, but since it was written decades (and several OSs) ago, it's IMHO worth reading through the basics. For one thing, it tends to use different terminology than most people are familiar with.

Re:Announcing my free book on Vim by d0mine on Wednesday November 26, 2008 @07:47PM (#378248)
I'd say press F1 F1 and follow instructions on the screen.
Re:Announcing my free book on Vim by babo on Wednesday November 26, 2008 @02:09PM (#377942)
:help Just to mention the same for Vim. :-)
Re:Announcing my free book on Vim by babo on Wednesday November 26, 2008 @02:13PM (#377950)
F1 even works.
Re:Announcing my free book on Vim by sc on Wednesday November 26, 2008 @07:52PM (#378251)

  % vimtutor
An alternative.
Re:Announcing my free book on Vim by dimitar on Wednesday November 26, 2008 @08:39AM (#377599)
Vim seems to add a lot of things you would rather expect from emacs (great extensibility) and emacs of course has always been able to emulate vi keybindings.

What are the major differences in functionality between the two?

Re:Announcing my free book on Vim by cschneid on Wednesday November 26, 2008 @09:28AM (#377623)
Even with all it's features, Vim's direction has always been as a pure text editor. Plugins focus on making editing better, new features help with multiple windows, making modes easier, etc.

Emacs is really a platform who's main use is a text editor. The programming tools are stronger, and it has a few more interactive options when making extensions. This allows developers to create news readers, email clients, web browsers all inside emacs. Much of that could potentially be possible in Vim, but it would require shelling out, and would have a nasty interface in general.

Re:Announcing my free book on Vim by kingkongrevenge on Wednesday November 26, 2008 @10:36PM (#378389)
> The programming tools are stronger

Not really. Not outside of lisp. Vim makes for a fully capable ide.

> allows developers to create news readers, email clients, web browsers

And they're all silly wasted effort.

Re:Announcing my free book on Vim by silentbicycle on Wednesday November 26, 2008 @11:23AM (#377730)
Longer comment about same: http://news.ycombinator.com/item?id=230990

Emacs is a Lisp virtual machine, and tends to act more like an integrated environment, while vi(m) is a text editor with less intrinsic extensibility.

Also, Emacs's default keybindings (both in the main system and virtually every mode people write for it, out of tradition) tend to use quite a bit of modifier keys (e.g. you are frequently typing with control held down), which can be hard on your hands. Vi clearly wins in this regard.

Re:Announcing my free book on Vim by graywh on Wednesday November 26, 2008 @03:33PM (#378018)
The key thing being Vim's "modes". Vim users spend most of their time in normal mode navigating and doing some editing. Insert mode is for actually typing characters into the document.
Re:Announcing my free book on Vim by silentbicycle on Wednesday November 26, 2008 @06:47PM (#378207)
Right. Emacs modes are more context-oriented ("I'm editing XML, so give me navigation commands that natively understand that syntax") while vi modes are operation-oriented (either inserting/appending or navigating/editing). In the vi sense, Emacs is always in both modes, so you need to press modifier keys to categorize actions (and if you're unlucky, you may find yourself gradually growing crab claws for pinkies).

There's an editor synthesis waiting to happen, but decades of old elisp means there's a lot of inertia for new editors to overcome.

Re:Announcing my free book on Vim by graywh on Tuesday January 20, 2009 @04:40PM (#442343)
The difference I was trying to point out is that Emacs is always in "insert mode" in the vi sense. In vi normal mode, many commands don't require modifier keys.

Vim has syntax-aware navigation, too. And what Emacs calls "modes", Vim calls syntax/filetype plugins.

Re:Announcing my free book on Vim by kaens on Wednesday November 26, 2008 @09:44PM (#378357)
Pretty much the first thing I do these days is swap Caps Lock and Control on my keyboard layout. Emacs is the reason I started doing this, now I wonder how I ever lived without it.
Re:Announcing my free book on Vim by silentbicycle on Thursday November 27, 2008 @03:04PM (#378871)
On long days at work, sometimes my pinky will start to ache from holding down control while typing. It's definitely better than leaving Ctrl at the bottom left, but I'm considering remapping the left Alt to Ctrl so I can type it with my thumb. (No other RSI symptoms, and I'd like to keep it that way.)

I don't have a Kinesis keyboard, but I read that their modifier keys (along with space, Enter, and backspace) are all at the thumbs, and that seems like a really good idea.

Re:Announcing my free book on Vim by jackowayed on Wednesday November 26, 2008 @08:53AM (#377605)
What I really like about emacs is extensibility in Lisp. I used vim until I wanted to be able to hack my editor. I have absolutely no desire to learn vimscript, a language useful solely for hacking vim. Lisp, on the other hand, is actually a real language.
Re:Announcing my free book on Vim by andyn on Wednesday November 26, 2008 @09:05AM (#377611)
You can script Vim in python.
Re:Announcing my free book on Vim by bdotdub on Wednesday November 26, 2008 @09:37AM (#377631)
Any links or resources for this? I would much rather do that than using vimscript!
Re:Announcing my free book on Vim by swaroop on Wednesday November 26, 2008 @11:40AM (#377752)
Re:Announcing my free book on Vim by tzury on Wednesday November 26, 2008 @01:53AM (#377356)
Just started reading it.

So far great reading.

Thank you very much

Re:Announcing my free book on Vim by prakash on Wednesday November 26, 2008 @02:02AM (#377365)
Swaroop's byte of python book is well liked by beginners.
Re:Announcing my free book on Vim by andr on Wednesday November 26, 2008 @08:03AM (#377575)
Clearly better than Emacs! (j/k)