Changed


Ⅰ. 插件描述

Displays signs on changed lines.

Ⅱ. 基本信息

创建日期:  2008-12-28
使用用户:  11
Github星:  2
插件作者:  Shuhei Kubota

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Changed

Ⅳ. 文档说明

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.

添加新评论