Changed : Displays signs on changed lines.
script karma |
Rating 30/12,
Downloaded by 2139 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Shuhei Kubota |
|
script type |
utility |
|
description |
Description:
Displays signs on changed lines.
Requirements:
* +signs (appears in :version)
* diff command
* setting &termencoding
Usage:
[Settings]
1. Setting &termencoding
Set &termencoding option according to your terminal encoding.
Its default value is same as &encoding.
example:
set termencoding=cp932
2. Changing signs
To change signs, re-define signs after sourcing this script.
example (changing text):
sign define SIGN_CHANGED_DELETED_VIM text=D texthl=ChangedDefaultHl
sign define SIGN_CHANGED_ADDED_VIM text=A texthl=ChangedDefaultHl
sign define SIGN_CHANGED_VIM text=M texthl=ChangedDefaultHl
example (changin highlight @gvimrc):
highlight ChangedDefaultHl cterm=bold ctermbg=red ctermfg=white gui=bold guibg=red guifg=white
[Usual]
Edit a buffer and wait seconds or execute :Changed.
Then signs appear on changed lines.
|
|
install details |
Just source this file. (Put this file into the plugin directory.) |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|