Live data from Hacker News

Square open-sources its Vim repo, Maximum Awesome

corner.squareup.com

71–80 of 145 posts

Re: Square open-sources its Vim repo, Maximum Awesome

#71
post #13

Not to rain on anybody's parade here, but for first-time vim users I recommend not using any plugins and only selectively adding them one at a time after the basics (buffers, navigation, some ex mode, etc) are at least somewhat familiar. Getting started with plugins enabled makes it hard to understand where vim stops and plugins begin and make switching to a different (someone else's) vim setup confusing at best. It…

I'd say that syntax/completion scripts are an exception as they are pretty much mandatory if you're writing code in a language that hasn't made it's way into the official release (and to be frank, there are a lot of gaps).

Re: Square open-sources its Vim repo, Maximum Awesome

#72

I would love to know why they have chosen Pathogen instead of Vundle to manage plugins. As hard as I try, I can't see any reasons why Pathogen is greater than Vundle. Can someone enlighten me?

Chalk it up to different preferences. I prefer Vundle too, never could get Pathogen to work, but Vundle just does for me. But others were using Pathogen before Vundle appeared and have no reason to switch.

Everyone used Pathogen before Vundle, as Pathogen is older. However after an extensive use of Vundle, it's the fastest way to deploy your environment from scratch - or to add, modify or delete a plugin. I really don't troll here - but honestly, managing plugins with Vundle is such a joy that I don't see why a company like Square releases a Vim project using Pathogen. And I'd looveeeee to know the reasons - is it indeed because of personal preferences or is there something I'm missing?

Re: Square open-sources its Vim repo, Maximum Awesome

#73
post #23

Great to see some love for tmux. Terminal vim + tmux is a lot more powerful than Gvim or MacVim. That said, I started using vim with Janus and while it convinced me that vim could be a great modern editor, it left me too confused when I tried to make my own customizations. I ended up ditching it and hand-picking my own plugins. I suspect a completely new vim user would likely experience the same process with Maximum…

A vim plugin pack could work very well—I think the problem is with many of the plugins, which were built to scratch the author's itch and inadvertently dig their tendrils into half of vim's functionality. That's sort of tolerable when installing them one at a time (and figuring out how to loosen their grip one at a time), but every time I've installed a plugin pack I've suddenly had a vastly different vim that was both buggy and much slower.

gitgutter, ctrlp, and pretty much anything from tpope are all great in this regard: they do one localized thing and it Just Works. (Downside is when that "one thing" is a shortcut or function, and with no other cues I forget I even have the plugin installed.) On the other hand I've had pretty terrible experiences with SuperTab, which required a lot of fiddling and still breaks my Tab key sometimes, and ctags is such a pain that I've never gotten around to making it actually work. But those are useful enough that they end up in most plugin bundles, so you get a Cartesian product of the interference and brokenness of all of them.

Re: Square open-sources its Vim repo, Maximum Awesome

#74

Ok, got this cloned and installed. If I'm moving from Sublime to vim, where do I go now? I know a few basic vim commands (switch modes, edit, write, quit) but have never used it to work on a complete project in a directory.

Try Drew Neill's book- Practical Vim. It's the best vim book I have read. There is just so much information packed into that book, it's astounding. It made me go from a vim beginner to a vim semi-expert.

Re: Square open-sources its Vim repo, Maximum Awesome

#75
post #13

Not to rain on anybody's parade here, but for first-time vim users I recommend not using any plugins and only selectively adding them one at a time after the basics (buffers, navigation, some ex mode, etc) are at least somewhat familiar. Getting started with plugins enabled makes it hard to understand where vim stops and plugins begin and make switching to a different (someone else's) vim setup confusing at best. It…

as an anecdote, i've been using Vim for almost 10 years and i've never used plugins. the extent of my customization is setting the font/color scheme in the vimrc

Re: Square open-sources its Vim repo, Maximum Awesome

#76

Am I missing something? What makes this "maximum-awesome"? This is your average vimrc with the regular plugins you seen in every vimrc over at GitHub.

Because it's Square and they're hip. Whenever they open the lids of their macbooks its you know... just awesome. Not to mention it's not maximum awesome: CtrlP > Command-T and Vundle > Pathogen.

> Vundle > Pathogen

I disagree on that front. Managing git repos is easier for me to do the way I always do it than with a slightly auto-magic system specific to those sort of git repos. Pathogen does a little, but does it flawlessly. Vundle does more, but the more it does is far less elegant.

Re: Square open-sources its Vim repo, Maximum Awesome

#77

Do lots of people use let mapleader = ',' instead of Ctrl? Also does anyone see where they are setting the /// to comment? Commentary uses gcc and I don't see it in their vimrc.

comma is really useful as a leader and it's not so far away on the keyboard. No one I have heard of uses ctrl for leader(it would ruin a lot of ctrl-whatever commands) and by default the leader is a backslash.

Re: Square open-sources its Vim repo, Maximum Awesome

#78

Am I missing something? What makes this "maximum-awesome"? This is your average vimrc with the regular plugins you seen in every vimrc over at GitHub.

Yes, you are missing something: it's a joke. People sometimes overstate things to achieve a comical effect. People use comical effects for a variety of purposes: to get other people to like them, to make themselves (and the things they make) look more approachable, to covertly criticise their own weaknesses and so on. You might not find it very funny but you know, it's still a joke. Obviously.

Re: Square open-sources its Vim repo, Maximum Awesome

#79
post #66

Do lots of people use let mapleader = ',' instead of Ctrl? Also does anyone see where they are setting the /// to comment? Commentary uses gcc and I don't see it in their vimrc.

I went crazy, and it's a bit more tricky to pull off, but `q` is my leader key. Haven't looked back. P.S. I mapped `Q` to recording Macros, since the default use of `Q` is completely useless to me.

I keep `q` to record macros, but complement that with :noremap @q That way I can press `qq` to start recording, `q` to end, then just wack the spacebar to execute. I use it constantly.

Re: Square open-sources its Vim repo, Maximum Awesome

#80
post #51
post #23

Great to see some love for tmux. Terminal vim + tmux is a lot more powerful than Gvim or MacVim. That said, I started using vim with Janus and while it convinced me that vim could be a great modern editor, it left me too confused when I tried to make my own customizations. I ended up ditching it and hand-picking my own plugins. I suspect a completely new vim user would likely experience the same process with Maximum…

The only thing I really like about MacVim as opposed to Terminal vim + tmux is how fast the cursor moves can move around.

Is the Keyboard Repeat Rate or Delay Until Repeat set to low? (System Preferences -> Keyboard)
Post reply on HN