Ⅰ. 插件描述
Enhancing the built-in marks functionality of vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/annotatedmarks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/annotatedmarks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/annotatedmarks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/annotatedmarks
Ⅳ. 文档说明
Vim script for enhancing the built-in marks functionality of vim.
It gives you a chance to associate some meaningful annotation with a particular mark,
thus decreases the possibility of you getting lost amongst a large amount of codes.
Also, it keeps track of which marks to use automatically: you don't have specify the
name of mark. It uses global marks (A-Z) and tries to use an empty mark when possible.
The first mark you add would be A, next would be B, etc. If all marks are used, it'll
search for an least used one (provided that you use THIS script for jumping to it) and
overwrite it.
The information about marks are persistent so restarting Vim won't affect them.
Usage:
Pretty straight forward stuff.
After installation (drop it in $RUNTIME/plugin), <Leader>M will add a new mark. You'll
be prompted for a comment on this mark.
:Amarks would list all marks known to this script and let you choose one to jump to.
Configuration:
g:am_persistent_file. String. Defines the file that this script writes to between vim sessions.
g:am_use_popup_menu. 1 or 0. If it's 1, popup menu would be used, otherwise, echo would be used.