vim-java-changes


Ⅰ. 插件描述

VIM-Java Bundle for tracking changes on the Filesystem

Ⅱ. 基本信息

创建日期:  2015-03-09
使用用户:  0
Github星:  0
插件作者:  Robert

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

VIM-Java Changes

Adds functionality to track changes in the filesystem. Files are not
only changed inside VIM, they may be modified externally through sed, grep, etc., or
even through version management like git (when switching branches, etc).
So the task is to tell for example if the pom.xml changed since last usage, or any source
files changed.

Uses the plugin at: https://github.com/robertbraeutigam/vim-java-changes-plugin

Install

If you are using Pathogen, just clone this into the 'bundle' directory.

You also need to install the VIM-Java Backend.

Usage

Normally this Bundle's plugin would be used by other plugins, but there are two VIM functions to enable native
VIM scripts to use it too:

  • `changes#register(listenerId, directoryName, recursive): Register a directory, potentially recursive, to be watched
  • `changes#changes(listenerId): Return an array of tuples with all the changed files since last call.

The listenerId needs to be unique to the use case for which it is used, but can be used to register
multiple directories (multiple calls to register). Each call to changes will automatically purge the list
of changes, so only the changes since last call will be delivered.

添加新评论