News for hackers. Stuff that matters.
Re:Vimbits: submit and vote on .vimrc tricks by AlexeyMK on Sunday February 26, 2012 @10:20PM (#3637647)
I'd love a "click on this to add it to your vimrc" feature.

There are a couple of thing you'd have to be careful about getting right for a script like that (IE, all the from-vimbits parts should be grouped together and documented), and the script that runs on my computer should be one that I can easily verify myself does only what I wanted.

Re:Vimbits: submit and vote on .vimrc tricks by oacgnol on Monday February 27, 2012 @12:44AM (#3637917)
And if not that, a copy to clipboard feature would be the next best thing - right now highlighting also grabs the extra text so copy/pasting these takes a bit of extra work and cleanup.
Re:Vimbits: submit and vote on .vimrc tricks by tubs on Monday February 27, 2012 @03:16AM (#3638198)
How about keeping a (per-user) .vimrc.bits file on the site itself, then a button per bit would add/remove that snippet from my .vimrc.bits, which I can include in my main .vimrc.

This could get better integration with the site, given it would be reasonably simple to remove snippets as well as add them.

Re:Vimbits: submit and vote on .vimrc tricks by seagreen on Monday February 27, 2012 @12:21PM (#3639684)
That would have the additional advantage of giving you easy access to your vimrc no matter what computer you were on.
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Monday February 27, 2012 @12:56AM (#3637929)
Not a bad idea- I'll see what I can do.
Re:Vimbits: submit and vote on .vimrc tricks by snitko on Sunday February 26, 2012 @08:31PM (#3637421)
I think this is great and the idea may be replicated for anything else in the opensource world. For instance, how a about voting for useful git commands, useful rubygems or js libs?

It's not always clear, especially for the novice, what is currently hot in his environment-of-choice infrastructure or which vim commands he should learn first. Voting could help.

Re:Vimbits: submit and vote on .vimrc tricks by olalonde on Sunday February 26, 2012 @09:52PM (#3637597)
There's http://www.commandlinefu.com/commands/browse for the command line.
Re:Vimbits: submit and vote on .vimrc tricks by el_presidente on Sunday February 26, 2012 @09:56PM (#3637602)
For git there's www.commandlinefu.com/commands/tagged/67/git
Re:Vimbits: submit and vote on .vimrc tricks by SkyMarshal on Monday February 27, 2012 @02:12AM (#3638089)
I'm just gonna karma whore it up here and give the clickable:

http://www.commandlinefu.com/commands/tagged/67/git

If you want to upvote, please upvote parent.

Re:Vimbits: submit and vote on .vimrc tricks by _sjs on Tuesday February 28, 2012 @02:05AM (#3642226)
I'll just upvote both of you
Re:Vimbits: submit and vote on .vimrc tricks by Deinumite on Sunday February 26, 2012 @08:38PM (#3637439)
This is great, I've recently got back into using Vim and finding these cool little snippets greatly increases my productivity. I'm not very fluent in vimscript so a website like this is amazing.

As an aside, I'm having some serious issues with bootstrap lately. It seems like every new website I'm seeing is using bootstrap, especially the top navbar, and it's kind of messing with my brain.

I'm finding it hard to distinguish if I've ever seen this website or not, I always feel like I landed on a bootstrap example page.

(Full disclosure: working on two websites that currently use bootstrap as well)

Re:Vimbits: submit and vote on .vimrc tricks by awegawef on Sunday February 26, 2012 @08:43PM (#3637446)
Same thing with user signup happened to me. No visual feedback, taken back to signup page, no email was sent. But I could login just fine...
Re:Vimbits: submit and vote on .vimrc tricks by Deinumite on Sunday February 26, 2012 @08:46PM (#3637450)
Right, that's what tripped me up as well. Registration just sends you back to the homepage. Login worked for me now as well.
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Sunday February 26, 2012 @08:48PM (#3637459)
Apologies; I'd intended to post this on HN after a few more bugs had been worked out, but I was beaten to it. I'll fix the lack of visual feedback shortly, although there's currently no email verification.
Re:Vimbits: submit and vote on .vimrc tricks by gbrindisi on Monday February 27, 2012 @12:33PM (#3639736)
Sorry it's my fault! I found your submission on reddit and thought it deserved to be shared - it didn't come to my mind you'd rather submit here by yourself.
Re:Vimbits: submit and vote on .vimrc tricks by robbles on Monday February 27, 2012 @03:43AM (#3638256)
Awesome concept! Thanks for building this.

One possible issue - There needs to be some kind of search for finding similar "VimBits". I wanted to add some of my favorites, but I have no way of knowing whether they're there already without reading through everything on the site.

You'll probably get a massive amount of duplication unless you can implement some kind of "suggested duplicates" on the create page, like Stack Overflow.

Re:Vimbits: submit and vote on .vimrc tricks by yogsototh on Monday February 27, 2012 @04:16AM (#3638338)
This, and a "hot" section. To get a constant flow of new and good entry. For example, by showing the best of the month/week/day.
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Monday February 27, 2012 @11:54AM (#3639585)
Yeah, I agree. I didn't expect such a quick influx of new bits- definitely need a way to detect duplicates.
Re:Vimbits: submit and vote on .vimrc tricks by the_cat_kittles on Monday February 27, 2012 @01:14AM (#3637965)
kind of like this subreddit i made a while ago: http://www.reddit.com/r/vimcommands
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Monday February 27, 2012 @01:17AM (#3637972)
Neat subreddit- consider me subscribed! I made vimbits, though, because I see a few sites for general vim commands, but none for specific vimrc config tricks.
Re:Vimbits: submit and vote on .vimrc tricks by the_cat_kittles on Monday February 27, 2012 @01:20AM (#3637977)
I'm glad you made it, it's much better than the subreddit! It would be cool if you were able to include video examples of the things in action (sometimes) as use cases.
Re:Vimbits: submit and vote on .vimrc tricks by objectified on Monday February 27, 2012 @10:15AM (#3639216)
Nice idea. In addition to the comments already made, I would find it useful to see how many comments an entry has from the overview pages. Right now you have to click the link to figure that out.
Re:Vimbits: submit and vote on .vimrc tricks by JoshTriplett on Monday February 27, 2012 @02:42AM (#3638146)
Bug report on the signup/login process: account creation requires both an email and username, but logging in later with the username doesn't work; you have to use the email. Yet, Firefox defaults to remembering the username+password, not the email+password. Did you intend it for use in attributions only? If so, call it "Name" instead, and don't require uniqueness.
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Monday February 27, 2012 @02:46AM (#3638150)
Fair enough- usernames were added after the fact as I realized that people want attribution, but no one wants their email public.
Re:Vimbits: submit and vote on .vimrc tricks by omegant on Monday February 27, 2012 @09:13AM (#3639003)
Cool! I just installed vim today and this will be great as I am Still a bit lost. That : remaping seems an instant classic for me!
Re:Vimbits: submit and vote on .vimrc tricks by awegawef on Sunday February 26, 2012 @08:36PM (#3637436)
Nice, love the concept. Any particular reason why you decided not to allow anonymous submissions?
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Sunday February 26, 2012 @08:47PM (#3637455)
Well, spam prevention, abusive user prevention, and user engagement (people like seeing their suggestion get upvoted).

Further, I already needed login for up-voting and commenting (or some other mechanism, but login was bar far the easiest solution).

I'm planning to replace the basic signup/login with something better: anonymous, third-party, or openid, maybe.

Re:Vimbits: submit and vote on .vimrc tricks by renownedmedia on Sunday February 26, 2012 @09:03PM (#3637492)
This URL should show my profile: http://vimbits.com/users/29

Anytime my name appears, it should be clickable and show my profile.

Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Sunday February 26, 2012 @09:21PM (#3637531)
Right now, there's no information to show there. Your profile consists of your username and your email. I'll put together a list of vimbits you've submitted at some point in the next few days. Not much of a 'profile', though.
Re:Vimbits: submit and vote on .vimrc tricks by dewarrn1 on Monday February 27, 2012 @07:13AM (#3638681)
Neat site! Tiny copy edit for you: "Share you coolest trick" should be "Share your coolest trick".
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Monday February 27, 2012 @11:56AM (#3639593)
Ah, good catch, thanks.
Re:Vimbits: submit and vote on .vimrc tricks by billybob on Monday February 27, 2012 @08:59AM (#3638948)
Great site! Seems like whatever I tag a bit with isn't being saved, though. I'm using Chrome on OSX.
Re:Vimbits: submit and vote on .vimrc tricks by _sjs on Tuesday February 28, 2012 @02:06AM (#3642230)
I would love a section of beautiful status lines
Re:Vimbits: submit and vote on .vimrc tricks by fishtoaster on Tuesday February 28, 2012 @01:33PM (#3644240)
Theoretically, that should be accomplished via tags- such do a search for "status-line". I definitely need to improve the tag exploration and assignment features, though, since a lot of people are using very different tags for the same stuff. Going to take some more inspiration from Stack Exchange for that, I expect.
Re:Vimbits: submit and vote on .vimrc tricks by cenuij on Sunday February 26, 2012 @10:42PM (#3637690)
Do only french journo's use vim?
Re:Vimbits: submit and vote on .vimrc tricks by cenuij on Sunday February 26, 2012 @11:09PM (#3637729)
~/.*

beautiful.

Re:Vimbits: submit and vote on .vimrc tricks by cenuij on Sunday February 26, 2012 @10:45PM (#3637697)
what publications does murdoch own in france?
Re:Vimbits: submit and vote on .vimrc tricks by cenuij on Sunday February 26, 2012 @10:40PM (#3637687)
is anyone clear or not? The Sun "Sunday" is the same shit scape that "news" of the world was.
Re:Vimbits: submit and vote on .vimrc tricks by cenuij on Sunday February 26, 2012 @10:34PM (#3637669)
I love the dickwadery, if you loved programming you would spot that editor wars are for fucking idiots. Grats on being fucking idiots.
Re:Vimbits: submit and vote on .vimrc tricks by sliverstorm on Sunday February 26, 2012 @11:16PM (#3637751)
Err, what? This is a web page about cool tweaks to vim. What does that have to do with emacs and/or editor wars?
Re:Vimbits: submit and vote on .vimrc tricks by burgerbrain on Monday February 27, 2012 @12:06AM (#3637849)
I'm beginning to think he's either high, or a markov chain...