Ⅰ. 插件描述
:eyes: " / @ / CTRL-RⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'junegunn/vim-peekaboo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'junegunn/vim-peekaboo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'junegunn/vim-peekaboo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/junegunn/vim-peekaboo
Ⅳ. 文档说明
vim-peekaboo
Peekaboo extends "
and @
in normal mode and <CTRL-R>
in insert mode so
you can see the contents of the registers.
Installation
Using vim-plug:
Plug 'junegunn/vim-peekaboo'
Usage
Peekaboo will show you the contents of the registers on the sidebar when you
hit "
or @
in normal mode or <CTRL-R>
in insert mode. The sidebar is
automatically closed on subsequent key strokes.
You can toggle fullscreen mode by pressing spacebar.
Customization
Config | Default | Description |
---|---|---|
g:peekaboo_window | vert bo 30new | Command for creating Peekaboo window |
g:peekaboo_delay | 0 (ms) | Delay opening of Peekaboo window |
g:peekaboo_compact | 0 (boolean) | Compact display |
g:peekaboo_prefix | Empty (string) | Prefix for key mapping (e.g. <leader> ) |
g:peekaboo_ins_prefix | Empty (string) | Prefix for insert mode key mapping (e.g. <c-x> ) |
License
MIT