vmark.vim: Visual Bookmarking


Ⅰ. 插件描述

Toggle visual bookmarking and jump through bookmarks

Ⅱ. 基本信息

创建日期:  2012-05-19
使用用户:  1
Github星:  8
插件作者:  Michael Zhou

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/vmark.vim--Visual-Bookmarking

Ⅳ. 文档说明

Usage:
   Normal Mode
     mm     Toggle visual bookmark current line
     ma     Remove all bookmarks
     mn     Move to next bookmark below current line.  Will wrap around at end.
     <F2>   Same as above (mn)
     mp     Move to previous bookmark above current line.  Will wrap around at top.
     <F3>   Same as above (mp)

Configuration:
     b:vm_maxmarks - Max number of bookmarks allowed in a buffer
     b:vm_guifg    - Foreground color for bookmarked line in GVIM
     b:vm_guibg    - Background color for bookmarked line in GVIM
     b:vm_ctermfg  - Foreground color for bookmarked line in VIM
     b:vm_ctermbg  - Background color for bookmarked line in VIM

Limitation:
   If syntax highlighting based on keywords is turned on and the line being bookmarked starts with a keyword, the keyword may not be highlighted but the rest of the line after the keyword should be highlighted normally.

Acknowledgement:
   Took cues from Amit Sethi's highlight.vim (http://www.vim.org/scripts/script.php?script_id=1599)

添加新评论