Live data from Hacker News

Vim: revisited

mislav.uniqpath.com

41–50 of 117 posts

Re: Vim: revisited

#41
set relativenumber

I had been using Vim for years, and this is fundamentally one of the most useful settings I came across. I think it's only available it the latest rel.

Funny side note, I was out on the town one night and saw a bunch of guys and girls hacking on their laptops... in a club. I noticed one guy using Vim, came up behind him and told him he has a good taste in editors. It turns out he's Jay Freeman (saurik). I showed him relativenumber and he was stoked. EOS.

Re: Vim: revisited

#42
post #25

Earlier quoted context omitted.

If you touch-type, keeping fingers on the home row is essential. So, yes, it's a huge waste.

+1 But I remapped the movement keys to j/k/l/; to avoid moving my left-index finger.

Same here, actually. Although in dvorak, they're htns :)

Re: Vim: revisited

#43
post #19

"And if you did multiple jumps, you can backtrack with ." I learn something new with these posts every time! I've been wanting something like this for a while.

And you can use Tab to go forward.

Re: Vim: revisited

#44
post #41

set relativenumber I had been using Vim for years, and this is fundamentally one of the most useful settings I came across. I think it's only available it the latest rel. Funny side note, I was out on the town one night and saw a bunch of guys and girls hacking on their laptops... in a club. I noticed one guy using Vim, came up behind him and told him he has a good taste in editors. It turns out he's Jay Freeman (sau…

Thank you for making me aware of this.

Re: Vim: revisited

#45
Having unrelatedly just started using CommandT today, let me say how amazing it is.

I've been using vim as a supreme novice for a few years, and have only really tried to get to know it better in the past six months after switching to OS X and getting to use MacVim.

And already in one night CommandT has blown me away with how timesaving it is, and how much time I've wasted in the past not using it.

Re: Vim: revisited

#46

If only I had read this when I first started using Vim! I've been using Vim for a while, and this is one of the best-organized overviews of Vim I've seen, partly because he doesn't try to enumerate every single key combination (which is the wrong way to learn Vim - the right way is to synthesize the way that the individual operations are logically combined, though that admittedly takes some time). The best two pieces…

Hi, no need for remapping of any keys if you are after Esc. Just type Control-[, it generates Esc by default.

Re: Vim: revisited

#48
Good advice, although I personally disagree with him on the Janus front.

Janus is what got me to switch full time to Vim a few months ago, after having used Vim off and on for over a decade, mainly on the command line or for edits that were to difficult or repetitive to get done in more "friendly" editors/IDEs like TextMate and Visual Studio.

Janus provided just enough familiarity and convenience to make a full-time swap something I could stick with. After a couple of months of this I did basically dump Janus and start managing plugins myself with Pathogen (adding new ones and removing some of the default Janus ones), and customising my config (which is still based on the old Janus config, but extensively modified)

Re: Vim: revisited

#49
Not really sure why the hate for nerdtree.

"Don’t use the NERD tree plugin. It is clumsy, will hurt your workflow with split windows, and it’s not particulary pretty either. You never needed a file browser pane in the first place."

"It is clumsy"

We're talking about VIM, with dozens of keystrokes to invoke everything but emacs already. The whole thing is a bit clumsy! I use it every day and have for a decade but it's still clumsy.

"will hurt your workflow with split windows"

The author then goes on to state

"You can split the current buffer horizontally or vertically. This is useful, for instance, to view simultaneously the top and the bottom part of the same file. But it’s even more useful to view different files in splits; for instance tests and implementation."

HUH?

" and it (nerdtree) ’s not particulary pretty either"

And the rest of VIM is?

Nerdtree is great, especially when I'm using it on remote systems. A vim session open with nerdtree and some tabs inside of a screen session, and life is good.

Re: Vim: revisited

#50

If only I had read this when I first started using Vim! I've been using Vim for a while, and this is one of the best-organized overviews of Vim I've seen, partly because he doesn't try to enumerate every single key combination (which is the wrong way to learn Vim - the right way is to synthesize the way that the individual operations are logically combined, though that admittedly takes some time). The best two pieces…

I agree about accepting (most) standard key bindings, but here are two clever bindings I adopted: " Enter command mode with SPACE instead of : noremap : " Exit insert mode with jj (double J) instead of ESC imap jj

don't forget about:

  let mapleader = ","
it remaps to ',' instead of '\'
Post reply on HN