347 points · by whalesalad · 14y ago · 137 comments
Some comments:
1) The order feels a little artificial. I like that inserting text isn't mentioned until a couple chapters in, but I think that the focus on saving/writing files at the start is misplaced. If I'm a newbie and I don't know how to change or insert text, I don't have the ability to meaningfully practice saving as I read.
2) There are some weird inconsistencies, like teaching :next (:n) for next file, but Ctrl+^ for previous file. :Next (:N) is easier to remember, works in vi and is shorter to type than the less-compatible :prev that I would otherwise suggest. :! is mentioned several times in different contexts, without a hint that it's the same command in each but with a different prefix or argument.
3) There's a focus on memorization of compound commands rather than understanding how motions and operators work. If you know how the cursor works and that "y" means "yank from cursor", you don't have to remember that "yl" means "yank a single character" because you can compose it from "yank from cursor" and "one character to the right". This composition of movement and operators is one of vi's greatest strengths, and I think that exposing new vi users to it as early as practically possible is a great way to get them to appreciate what they're learning.
All in all, it's a worthy read for someone who doesn't know any vi and needs a quick lesson in the basics, somewhat like the foreign language learning products that focus on teaching you enough conversational vocabulary for a vacation or business trip. If you want to immigrate to vi-land permanently, I'd suggest supplementing this with something like Drew Neil's "Practical Vim"[1] to learn the "bigger picture" stuff as well.
I agree that it seems strange to teach Ctrl+^ for previous file. (Not symmetrical, and doesn't really mean previous anyway.) However, particularly for the purpose of teaching newbies, I think :Next would be even more confusing... and I could be wrong about this, but I think the number of people who need to care about learning vi (as opposed to vim) is really small, if it even extends beyond communities of people who think that things created 20 years ago are newfangled.
If you switch to vim as the baseline, there's a bunch of other easier ways to do things too, like using :sav (:saveas) instead of :w <filename> followed by :e <filename>.
I started my vim experience using Janus
But I didn't understand how anything worked or why any of the plugins were there.
That led me to starting from scratch (I forked my cofounder's dotfiles) and now I feel like I know my vim config waaaay better. If you've been using janus, I'd highly recommend giving the ground up strategy a shot.
One day I was SSH'd into a remote server and vim'd a directory by accident and I discovered Netrw. It wasn't the same as NERDTree, but it was good enough for me to get rid of that plugin. Eventually I just learned to enjoy the defaults with minor tweaks. Today my vimrc[1] is < 200 lines, mostly comments and navigation shortcuts.
I was looking for the rightbelow this, found it in your vimrc. Found it weird you don't have wildmenu...
I figured out that when you're in the learning stage with vim, you should always be editing your dotfiles because that's a big part of progressing up the learning curve.
I love reading other people's vimrc as I usually always find something new that I'm willing to try out. Mine is here in case someone wants to take a look: https://github.com/PatrickLerner/dotfiles/blob/master/vimrc
Case in point, when someone is literally giving a potentially interesting book away and I can't be arsed to take it because getting it onto my reader of choice is just too much hassle.
More irony is ironic: there's no Kindle reader for Linux, which is one of the platforms on which vi/vim are most likely to be found.
Thanks for nothing, Amazon.
[1] http://apprenticealf.wordpress.com/2010/02/11/hello-world/
It sucks, but it'll do in a pinch.
Unofficially, it's easy to use Calibre to convert them to epub. (DRM add a few minutes of extra work.)
(amazon.nl links through to amazon.co.uk)
Amazon.de also does not sell it to everybody: "Aufgrund urheberrechtlicher Bestimmungen ist der Kindle-Titel, den Sie kaufen möchten, in Ihrem Land nicht verfügbar: Niederlande"
Perhaps the "two years old" is my problem and I just need a newer device but, boy, I just can't get myself to use this thing with any consistency.
That said, for reference books, it's worse than the alternatives. I almost exclusively use it for reading books back-to-back (i.e. relying very little on the arrow keys)
Kindle is great for cover-to-cover reading, but for reference I will always prefer dead-tree (but will settle for searchable pdfs)
I find the reading experience is quite smooth. Navigation and the UI is a bit slow, but that is a secondary feature to me.
Unlike Stallman, though, I cannot resist the temptation of free beer.
The Amazon site likes to group things into "As low as <price>" sections, which means there's a least one item at that price, with most things costing more.
http://www.amazon.com/s/ref=sr_st?bbn=726697011&qid=1345...
It's not perfect but you can find good deals this way.
This title is not available for customers from your location in: Asia & Pacific
What will it cost when it's released later?
You can get a refund within 7 days though if you do click by accident.
Actually, now I'm pretty sure why Amazon would be upset when someone else copies their one-click patent. And the sneaky thing is, when you create a new account it's on by default!
I never bought another book from Amazon ever again.
They wonder why folks pirate. I paid for that book, I would feel well within my rights to find a copy of the book in PDF format (non-DRM encoded) and use that instead. I haven't done that - but there you have it. I paid for a book, I didn't get a refund of about $100 and I can no longer read the book. They stole from me.
Vi reminds me of the crazy-old wordstar days.
Waiting for a meeting to start or standing in line? I'll read the next dozen pages in my Clojure book or the latest fiction novel I'm working on.
When I first started reading on my phone I thought the bright display and small screen would bother me. It hasn't. I've read huge novels on my phone flipping small page after small page. If anything, I feel like I read faster.
<wish I was in the US>