Ⅰ. 插件描述
Changelog support like Emacs/GNUⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/gnuchangelog'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/gnuchangelog'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/gnuchangelog'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/gnuchangelog
Ⅳ. 文档说明
Enhances the default changelog support with a global mapping that opens and adds an entry in the appropriate ChangeLog file. The entry now includes the edited filename and if configured, the class/method/function name. The function that finds the class/method/function name can be configured with filetype plugins so that one can use different tag searchers for different languages.
The ChangeLog file is only edited if it already exists, which is searched upwards starting in the directory where the edited file is located. If the corresponding ChangeLog file is already opened, the script either splits the window to edit the buffer or switches to the window where the buffer is already opened.
This behavior is identical to how emacs handles ChangeLog files with the change-log-mode provided by C-x 4 a.
See also:
http://gnudist.gnu.org/software/emacs/manual/html_node/Change-Log.html
http://www.gnu.org/prep/standards/html_node/Change-Log-Concepts.html