Go to file
Marco Hinz 2a6e28368d fix jumping bug
If there was an entry in s:sy and these changes were removed again, then
the sign IDs were deleted, but not the jump ID.

Obviously you can't sign jump to a non-existing sign.

Fixed.
2013-03-11 23:46:34 +01:00
doc add support for darcs repos 2013-03-11 18:49:17 +01:00
plugin fix jumping bug 2013-03-11 23:46:34 +01:00
README.md add support for darcs repos 2013-03-11 18:49:17 +01:00
signify.png update screenshot 2013-03-07 06:49:34 +01:00

vim-signify

Or just: sy

Sy shows all added, deleted and modified lines since the last commit via Vim its sign column. It supports several version control systems.

It's fast, highly configurable and well documented.

Features:

  • supports git, mercurial, darcs, bazaar, subversion, cvs

  • apart from signs there is also optional line highlighting

  • fully configurable through global variables

  • optional preserving of signs from other plugins

  • you can toggle the plugin per buffer

  • exception lists for filetypes and filenames

  • good documentation

  • quick developer response! :-)

Example:signify in action

Limits exist only in your mind! Vim on!

Installation

I suggest using tpope's plain and awesome pathogen:

Afterwards, just clone vim-signify into ~/.vim/bundle/.

Usage

:h signify

Configuration

For more info: :h signify-options

let g:signify_mapping_next_hunk = '<leader>gn'
let g:signify_mapping_prev_hunk = '<leader>gp'

let g:signify_mapping_toggle_highlight = '<leader>gh'
let g:signify_mapping_toggle           = '<leader>gt'

let g:signify_exceptions_filetype = [ 'vim', 'c' ]
let g:signify_exceptions_filename = [ '.vimrc' ]

let g:signify_sign_overwrite = 1

let g:signify_sign_add    = '+'
let g:signify_sign_delete = '-'
let g:signify_sign_change = '*'

let g:signify_sign_color_guifg_add      = '#00ff00'
let g:signify_sign_color_guifg_delete   = '#ff0000'
let g:signify_sign_color_guifg_change   = '#ffff00'
let g:signify_sign_color_guibg          = '#111111'

let g:signify_sign_color_ctermfg_add    = 2
let g:signify_sign_color_ctermfg_delete = 1
let g:signify_sign_color_ctermfg_change = 3
let g:signify_sign_color_ctermbg        = 0

let g:signify_sign_color_group_add    = 'MyAdd'
let g:signify_sign_color_group_delete = 'MyDelete'
let g:signify_sign_color_group_change = 'MyChange'

let g:signify_line_color_add    = 'DiffAdd'
let g:signify_line_color_delete = 'DiffDelete'
let g:signify_line_color_change = 'DiffChange'

let g:signify_enable_cvs = 1

Author

Marco Hinz <mh.codebro@gmail.com>

License

Copyright © 2013 Marco Hinz. Revised BSD license.