git_shade.vim : Colors lines in different intensities according to their age in git's history
script karma |
Rating 7/8,
Downloaded by 1118 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
joey twiddle |
|
script type |
utility |
|
description |
Colours lines in different intensities according to their age in git's history
Also displays commit info for the current line in the cmdline.
Run `:GitShade` to shade the file, and again to turn it off.
Naturally this only works in Vim's GUI mode.
If you never have GUI mode available, you may want to try the
GitGutter plugin instead: https://github.com/airblade/vim-gitgutter
Some possible options (see the plugin file for more):
let g:GitShade_ColorGradient = "black_to_blue"
let g:GitShade_ColorWhat = "bg"
let g:GitShade_ColorGradient = "green_to_white"
let g:GitShade_ColorWhat = "fg"
In the screenshots below, the brighter blue background indicates a more recent addition.
With `let g:GitShade_Linear = 0` the recent additions stand out clearly:
http://neuralyte.org/~joey/git_shade/git_shade/git_shade_non_linear.png
With `let g:GitShade_Linear = 1` we can see the relative ages of all lines in the file:
http://neuralyte.org/~joey/git_shade/git_shade/git_shade_linear.png |
|
install details |
Drop the file in ~/.vim/plugin/ |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|