vim-poi


Ⅰ. 插件描述

store points of interest across for your current session

Ⅱ. 基本信息

创建日期:  2015-04-15
使用用户:  1
Github星:  2
插件作者:  Dan Bradbury

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'danbradbury/vim-poi'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'danbradbury/vim-poi'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'danbradbury/vim-poi'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/danbradbury/vim-poi

Ⅳ. 文档说明

# vim-poi

vim-poi (points of interest), makes it easy to highlight an important line or block of code (ideal for pair programming / visualizing complex code paths). Highlights are unique to the buffer and can be snapped to anywhere in the session using the :PoiPreview quickfix window.

High contrast colors have been selected for optimal viewing experience across all versions of vim.

Installation

Pathogen

If you don't have an installation method yet, give pathogen.vim a shot and copy paste the following:

cd ~/.vim/bundle
git clone https://github.com/DanBradbury/vim-poi.git

Usage

Add the following to your .vimrc to get started (wiki article for more details on each command)

nnoremap <Leader>p :PoiLine<CR>
nnoremap <Leader>p2 :PoiLine2<CR>
nnoremap <Leader>p3 :PoiLine3<CR>
nnoremap <Leader>p4 :PoiLine4<CR>
vnoremap <Leader>p :PoiLines<CR>
vnoremap <Leader>p2 :PoiLines2<CR>
vnoremap <Leader>p3 :PoiLines3<CR>
vnoremap <Leader>p4 :PoiLines4<CR>
nnoremap <Leader>pc :PoiClear<CR>
nnoremap <Leader>pd :PoiChange<CR>
vnoremap <Leader>pd :PoiRangeChange<CR>

License

Copyright © Dan Bradbury. Distributed under the same terms as Vim itself.
See :help license.

添加新评论