Skip to content

Instantly share code, notes, and snippets.

@sjl
Created August 14, 2011 17:56
Show Gist options
  • Save sjl/1145127 to your computer and use it in GitHub Desktop.
Save sjl/1145127 to your computer and use it in GitHub Desktop.
Golden Ratio Vim Plugin Comments

There's some weirdness when I've got 3 or more vertical windows open: http://www.screenr.com/cghs

A little animated gif or screencast demo in the readme would be awesome.

I wouldn't bind to <leader>g automatically -- it wiped out what I already had bound to that and I had to rebind the GR key to fix it. At the very least, don't bind to <leader>g if <leader>g is already bound. Actually I'd probably prefer to not have it bound to a key at all by default, since by default there are autocommands so you never need to use the key anyway. If someone disables those autocommands they'll be adding to their Vimrc anyway, so they can just bind whatever key they want at the same time.

One other thing: an option to automatically setlocal wrap on the focused window and setlocal nowrap on all the others would be great.

@roman
Copy link

roman commented Aug 15, 2011

Steve,

  • The resizing... I can do something good as long as you have 3 buffers in a row like the ones you show on your video, as soon as you starting to have vertical windows in a 3 horizontal setup, everything starts to mess up a little (not an easy problem)
  • I'm going to remove the automatic mapping altogether, for some reason is overwriting the mappings even if I tell it not to remap when something else was already mapped to those same keys. Can you check the code on the mapping part and throw some hints at me, I have no idea why is not working :-(.
  • wrap/nowrap == GREAT_IDEA... I will be putting that soonish

Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment