Customisable signs' symbols.

This commit is contained in:
Andy Stewart
2013-03-20 09:29:00 +01:00
parent 2a5ae179fc
commit e04d719159
3 changed files with 44 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ Commands for jumping between marked hunks:
You can customise:
- The sign column's colours
- The signs' colours
- The signs' colours and symbols
- Line highlights
- Whether or not vim-gitgutter is on initially (defaults to on)
- Whether or not line highlighting is on initially (defaults to off)
@@ -128,10 +128,10 @@ like this:
User-defined (terminal Vim) highlight SignColumn ctermbg={whatever}
User-defined (graphical Vim) highlight SignColumn guibg={whatever}
SIGNS' COLOURS
SIGNS' COLOURS AND SYMBOLS
To customise these, set up the following highlight groups in your colorscheme
or |vimrc|:
To customise the colours, set up the following highlight groups in your
colorscheme or |vimrc|:
>
GitGutterAdd " an added line
@@ -146,6 +146,14 @@ them to existing highlight groups with, say:
highlight link GitGutterAdd DiffAdd
<
To customise the symbols, add the following to your |vimrc|:
>
let g:gitgutter_sign_added = 'xx'
let g:gitgutter_sign_modified = 'yy'
let g:gitgutter_sign_removed = 'zz'
let g:gitgutter_sign_modified_removed = 'ww'
<
LINE HIGHLIGHTS
Similarly to the signs' colours, set up the following highlight groups in your