Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


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.


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.


I had the same problem, I did:

au VimEnter * highlight clear SignColumn


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!


Very cool... I'm going to keep using this!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: