sponsor Vim development Vim logo Vim Book Ad

Changed : Displays signs on changed lines.

 script karma  Rating 30/12, Downloaded by 2134  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.)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
changed.vim 1.1 2009-01-17 7.0 Shuhei Kubota Added support for multi-byte file name.
changed.vim 1.0 2008-12-28 7.0 Shuhei Kubota Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github