Ⅰ. 插件描述
Vim bookmarks with CtrlP fuzzy findⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'deomitrus/ctrlp-bmks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'deomitrus/ctrlp-bmks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'deomitrus/ctrlp-bmks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/deomitrus/ctrlp-bmks
Ⅳ. 文档说明
# ctrlp-bmks
Add bookmarks to VIM. Show and select bookmarks with CtrlP.
Usage
Here's an example of how I use this plugin
nno <space>m :BmksAdd<cr>
nno <space>kc :BmksClear<cr>
nno <space>kd :BmksRemove<cr>
nno <enter> :BmksGoto<cr>
nno ;k :CtrlPBmks<cr>Add bookmark
<space>ma adds the current line to the a "register"
Go to bookmark
<enter>a goes to the line of the bookmark of "register" a
Show all bookmarks in fuzzy find list
;k opens up Ctrlp for fuzzy find. Type or select a bookmark and hit Enter
Remove a bookmark
<space>kda removes the bookmark stored in the a "register"
Clear all bookmarks
<space>kc clears all bookmarks