Live data from Hacker News

Vim Git Gutter

github.com

61–70 of 119 posts

Re: Vim Git Gutter

#61
Is there any way to make it so that the gutter is always present? There's a bit of a noticeable jump to include it when I save a file, it's sort of annoying me.

I tried

  let g:gitgutter_enabled = 1
but that does seem to work.

I'll have a poke through the source.

Re: Vim Git Gutter

#62
post #35

Great stuff, I was using svndiff before this but it was more of a miss than a hit, this seems to work nicely so far.

It works fine, but I am unsure of what advantage it has over svndiff, which also works fine.

Well, in my case svndiff never worked fine, it would showbad diffs 9/10 of the times, but maybe it was just a misconfiguration on my part.

Re: Vim Git Gutter

#63

Is there any way to make it so that the gutter is always present? There's a bit of a noticeable jump to include it when I save a file, it's sort of annoying me. I tried let g:gitgutter_enabled = 1 but that does seem to work. I'll have a poke through the source.

probably not, the way vim works if there are no more signs attached to a document the gutter goes away. This isn't plugin related, it's just a manner of how vim works.

Although I suppose you can work around this by displaying a fake sign (color match gutter background?), but that has its downsides (depending on colorscheme, the sign can show up. and vim doesn't support whitespace characters for signs, at least not from what I can see).

Re: Vim Git Gutter

#64
post #3

This is really nice, but I wish the background color of the gutter would automatically match the rest of my background. The gray band [1] is pretty unappealing IMO. Also noteworthy is that that the gutter only updates when the file is saved. [1] Screenshot: http://imgur.com/TIGKVRS

You can achieve that manually with `highlight clear SignColumn` in your colour scheme or ~/.vimrc. I'll (I'm the author) probably make this the default because it seems quite a common wish.

I'd suggest leaving the highlighting of SignColumn to the user's colorscheme.

Re: Vim Git Gutter

#65
I honestly like vim fugitive because of it's awesome power. I just type ,gd to see a diff in a split. I probably don't want to scan the gutter for files i've changed, and fugitive diff folds all non-changed lines

also, who the hell sets their font size that small? (screenshot in the readme). that's a sociopathically small font size. I will never trust you airblade. never.

Re: Vim Git Gutter

#66

Is there any way to make it so that the gutter is always present? There's a bit of a noticeable jump to include it when I save a file, it's sort of annoying me. I tried let g:gitgutter_enabled = 1 but that does seem to work. I'll have a poke through the source.

probably not, the way vim works if there are no more signs attached to a document the gutter goes away. This isn't plugin related, it's just a manner of how vim works. Although I suppose you can work around this by displaying a fake sign (color match gutter background?), but that has its downsides (depending on colorscheme, the sign can show up. and vim doesn't support whitespace characters for signs, at least not fr…

Yeah, I just noticed that now.

It seems to just grep through the diff itself, so adding a fake sign would be a pain and, as you mentioned, probably not display correctly anyway.

I'm sure my eyes will adjust :).

Re: Vim Git Gutter

#67

An aside question; what's the deal with "pathogen"? I've been using the "/bin/cp" command for years installing vim plugins and it's worked remarkably well; requiring just about 1 invocation on average... What problem does that thing solve?

I have 5 separate computers that I run vim on. Manually installing and updating is a huge pain. I keep my .vimrc in git to keep them all synchronized.

I use Vundle to take this a step further

https://github.com/gmarik/vundle

Re: Vim Git Gutter

#68
post #3

Earlier quoted context omitted.

You can achieve that manually with `highlight clear SignColumn` in your colour scheme or ~/.vimrc. I'll (I'm the author) probably make this the default because it seems quite a common wish.

Alternatively, using `hi! link SignColumn LineNr` will ensure that styling the user has applied to the more commonly used line numbering column will match the sign column used by vim-gitgutter.

AFAICT, this was technique advice specifically relevant to the parent post, the ongoing thread, and to improving folks experience with the tool in original post. To the anonymous downvoter: I give up. I have no idea what message you were trying to send.

Re: Vim Git Gutter

#69

Earlier quoted context omitted.

probably not, the way vim works if there are no more signs attached to a document the gutter goes away. This isn't plugin related, it's just a manner of how vim works. Although I suppose you can work around this by displaying a fake sign (color match gutter background?), but that has its downsides (depending on colorscheme, the sign can show up. and vim doesn't support whitespace characters for signs, at least not fr…

Yeah, I just noticed that now. It seems to just grep through the diff itself, so adding a fake sign would be a pain and, as you mentioned, probably not display correctly anyway. I'm sure my eyes will adjust :).

Why can't you change it if you want to?
Post reply on HN