Ⅰ. 插件描述
store points of interest across for your current sessionⅡ. 基本信息
|
Ⅲ. 安装方法
使用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
:PoiPreviewquickfix 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.gitUsage
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.
