Re:Vim Git Gutter
by saidajigumi on Tuesday March 05, 2013 @05:12PM
(#5327745)
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.
I hate it when plugins try to override my colorscheme, so I would highly discourage adding this to the plugin. To account for colorschemes that don't add colors for SignColumn without angering users, use the `default` keyword without the bang.
Some other things to consider: The sign column and line numbers are separated by the fold column. The default colorscheme has SignColumn and FoldColumn the same (Cyan or DarkBlue on Grey) and different from LineNr (Yellow or Brown).
Sorry, I was mistaken--the sign column is placed between the fold column and the line numbers.
Re:Vim Git Gutter
by saidajigumi on Tuesday March 05, 2013 @05:55PM
(#5328008)
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
by prezjordan on Tuesday March 05, 2013 @01:43PM
(#5326438)
I've added it at the bottom of ~/.vimrc, but for some reason it doesn't work until I explicitly type `highlight clear SignColumn` while editing a document. Any ideas why this could be happening?
Great plugin by the way, super handy.
Re:Vim Git Gutter
by chrismcbride on Tuesday March 05, 2013 @02:33PM
(#5326761)
I had the same problem, I did:
au VimEnter * highlight clear SignColumn
Re:Vim Git Gutter
by prezjordan on Tuesday March 05, 2013 @02:36PM
(#5326788)
Works like a charm, thanks :)
I had the same problem at first. Try putting it after wherever you're loading the plugin itself.
edit: Also, thanks airblade. I think I'm going to keep using this.
I experimented a bit more and found if I put it before my "syntax on" and color scheme setup lines it doesn't work, but if I put it after them the fix works. Raticide's comment clued me in.
You colour scheme is probably overriding it. You might want to edit your colour scheme's script and add it there.
Try
hi SignColumn ctermbg=232 guibg=#080808
None of the suggestions work for me. Plugin called via Pathogen - could this be an issue?
I'd suggest leaving the highlighting of SignColumn to the user's colorscheme.
I would appreciate this to be the default.
Thanks for your work!
I'll (I'm the author) probably make this the default because it seems quite a common wish.