Ⅰ. 插件描述
Modified version of ShowMarks plugin.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'bootleq/showmarks-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'bootleq/showmarks-is-holy'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'bootleq/showmarks-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/bootleq/showmarks
Ⅳ. 文档说明
ShowMarks.vim
Modified version of Anthony Kruize's ShowMarks plugin:
http://www.vim.org/scripts/script.php?script_id=152
Usage
Default key mappings:
<Leader>mt- Toggle whether marks are displayed or not.<Leader>mo- Turn ShowMarks on, and displays marks.<Leader>mh- Clear mark on current line.<Leader>ma- Clear all marks.<Leader>mm- Places next available mark.
Also provide commands for these functions.
Configuration
let g:showmarks_auto_toggle = []
Don't open ShowMarks with CursorHold autocommand.let g:showmarks_no_mappings = 1
Disable default key mappings.let g:showmarks_include = "abcdBA"
Only handle 'abcdBA' marks.
When using:ShowMarksPlaceMark, marks earlier in this list take
precedence over latters.let g:showmarks_ignore_type = "h"
Don't use ShowMarks with help files.let g:showmarks_textlower = "\t>"
Display lowercase marks with a ">" suffix.let g:showmarks_hlline_lower = 1
Highlight entire line where a lowercase mark is on.
See plugin doc for all options.
Changes Since Original Version
Original version (2.2) was written in 2004 and suitable for Vim 6.0.
This version should be more compatible with Vim 7, and will keep maintained.
Requirements
- Vim 7.0 or later.
- Compiled with the +signs feature.