Ⅰ. 插件描述
quickfixnotes: file annotation with quickfixⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/qfn'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/qfn'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/qfn'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/qfn
Ⅳ. 文档说明
QuickFixNotes, or QFN, is a quick hack that allows file annotation
based on |quickfix| functionality. In particular, this plugin allows the user
to tie comments to a specific source file, line number, and column number
without modifying the file being reviewed. The goal of the plugin is to
provide a simple and useful mechanism for tracking notes when reviewing any
sort of text file -- from documents and book drafts to source code and
configuration files. Paired with xxd, you can even annotate binary formats
with it. qfn is useful any place where inserting comments into the
file being reviewed is impractical.
Given its simplicity, this plugin only supplies a simple set of features:
* Add a comment for the given line and column number to the |quickfix| list
* Save the current |quickfix| list an expected format
* Provide all functionality without external scripting dependencies
In the future, QFN may support more advanced interfaces to the |quickfix|.
To use, just map <Plug>QuickFixNote and <Plug>QuickFixSave to keys.
When called, QuickFixNote will add an entry to the quickfix list with a user
supplied comment for the current cursor's line number, column, and buffer
name.