Live data from Hacker News

Vim: revisited

mislav.uniqpath.com

111–117 of 117 posts

Re: Vim: revisited

#111
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…

I ran across some variation on this toggle somewhere. Very handy.

  " toggle line numbers from absolute to relative with f2.
  map   :if &number 
      \set relativenumber 
        \else 
      \set number 
        \endif

Re: Vim: revisited

#112
Just as I finally managed to make vim play well with ruby and install CommandT, the (extremely useful) post has been updated with the note about ctrlp.vim. I guess I have no choice except to give it a shot as well. =) (Update: Nope, Command-T seems nicer.)

Re: Vim: revisited

#113
What is this guy's issue with Syntastic?

If he's saying it's not for beginning Vim users, OK, fine. But "harmful plugin"? Like it's some sort of malware? Very poor form.

Re: Vim: revisited

#114

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…

my one indispensable plugin is matchit.vim, which does % matching between paired tokens like do/end, or /

Re: Vim: revisited

#115

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…

Agreed he seems to just dismiss Janus randomly, instead prefering to tell people to what...assemble the plugins by hand and just copy his vimrc config? not ideal.

that's almost but not quite entirely unlike what he's suggesting, which is to start with a minimal .vimrc, understand every line in it, and gradually add tweaks and plugins as you see the need for them and understand how to set them up.

Re: Vim: revisited

#116

Every time I read about Vim I feel left off of something huge. Some of the super duper easy shortcuts suggested in this thread translate horribly to AZERTY. For instance ctrl+[ is alt+shift+ctrl+5 on a French Mac or ctrl+altgr+4 on a French PC keyboard.

just set up your own mappings for the same shortcuts. better yet, start a public azerty.vim project, so that other people can help develop and maintain a common set of bindings.

Re: Vim: revisited

#117

I'm puzzled by why syntastic was so counterproductive for him. It's helped me more times than it's hurt. Does he have autowrite on? Some additional tips: * As your # of plugins grow it helps to isolate plugin-specific config to separate files. Example: https://github.com/cldwalker/vimfiles/tree/master/after/plug... . * If you want to stop seeing vim as a series of unforeseen tricks, take the time to learn the 300-400…

300-400 keybindings? Even the flashcard utility only has ~250 in total. Do you mean 30-40?

I've since generated my own using vimdb. I could put up my flashcards if interested. vim has ~600 default keybindings if you :help index.txt .
Post reply on HN