Live data from Hacker News

Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

amazon.com

121–130 of 143 posts

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#122
post #101

Earlier quoted context omitted.

Name something you use that you think doesn't have a vi-like interface.

"Name something you use that you think doesn't have a vi-like interface." - XCode - Chrome - Filthy XCode

For Chrome Vimium is fairly nice http://vimium.github.com/

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#123
post #69

Thanks, downloaded and read through it and I picked up a couple new tricks, even as a pretty experienced Vim user. 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 meaningful…

Pretty nice review and I agree with most of your comments.

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.

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#124
post #81
post #71

Earlier quoted context omitted.

I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.

Does this really make that much difference? I kind of view the hjkl vs arrow keys like I view the standard debate about motion commands vs. the mouse. Lots of people say they are faster using motion commands, and I know I use search motions 85% of the time. But if I want to go somewhere that's visible on the screen, the mouse is almost always quicker. And I've used vi and derivatives for 20+ years now (although obvio…

It makes some difference. It is worth doing for some comfort and speed. But it isn't true that you can't get by without it. It's just much clumsier than it needs to be.

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#125
post #101

Earlier quoted context omitted.

Name something you use that you think doesn't have a vi-like interface.

To be fair, most vi-like interfaces suck or worse, they are clunky, incomplete or have odd bugs when interfacing with the rest of the program.

I would give all my money for a shell with a mode indicator be it cursor or modeline.

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#126

Earlier quoted context omitted.

To be fair, most vi-like interfaces suck or worse, they are clunky, incomplete or have odd bugs when interfacing with the rest of the program.

I would give all my money for a shell with a mode indicator be it cursor or modeline.

zsh can do that. eg. http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zs...

that was the first link on a ddg search. there were other articles. https://duckduckgo.com/?q=zsh+vi+mode+prompt

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#127
post #121

Earlier quoted context omitted.

Now do it with set builder notation!

http://pastebin.com/h8rqYXTZ

Points for trying.

∃x{ x | x ∈ Nerdtalk ∧ (x ∈ India ⊂ Asia ∧ Pacific) }

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#128
post #74
post #71

Earlier quoted context omitted.

I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.

Using hjkl instead of the arrows is not a small difference. It's huge. Staying on the home-row vs having to move your hand over and back constantly affects your speed and accuracy in a big way. Here's an easy way to switch: never, ever use the arrow keys to move the cursor again. Done!

In addition, to deal with the issue that programs others than vi may require the use of arrow keys, I use Autohotkey on Windows to map Caps Lock + hjkl to the arrow keys! Thus, both in vi and outside(, in Word, say), I just use Caps Lock + hjkl to navigate. Thus, I never have to move my hand away from the "home" position to use the arrow keys.

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#129

Earlier quoted context omitted.

Free as in beer, not free as in freedom.

Free as in beer if you've paid for the glass.

I'd say it's almost a textbook (no pun intended) example of "free as in beer" but not "free as in freedom" as Stallman defines it.

Unlike Stallman, though, I cannot resist the temptation of free beer.

Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only

#130
post #4

Also available on Amazon UK: http://www.amazon.co.uk/Vim-Vi-Tips-Essential-ebook/dp/B004J...

'available'. It is listed, but they do not sell it to everybody: "Due to copyright restrictions, the Kindle title you're trying to purchase is not available in your country: Netherlands"

(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"

Post reply on HN