Highlight and Mark Lines


Ⅰ. 插件描述

Highlights and Marks lines (up to 3) and allows moving between them.

Ⅱ. 基本信息

创建日期:  2007-07-25
使用用户:  1
Github星:  1
插件作者:  Ahmet Gokalp ERGEC

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/highlight-and-mark-lines'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/highlight-and-mark-lines'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/highlight-and-mark-lines'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Highlight-and-Mark-Lines

Ⅳ. 文档说明

Inspired from other scripters. Thanks.

This utility was created because of needs as others. My job requires log

  1. Sometimes I need to highlight specific lines and moving between
  2. for comparison. Most of my colleagues use UltraEdit which has this

capability which made me to find a way to add this capability to Vim.

What does this utility do?
It highlights and marks the line under cursor. Then you'll be able to move
between these marks easily. Unfortunately it is just limited to 3 marks because of my lack of coding knowledge.

Step 1 - Just highlight and mark the line with CTRL+F2, CTRL+F3 or CTRL+F4.
Step 2 - Then use F2, F3 and F4 to move between these marks.
Step 3 - Use SHIFT+CTRL+F2, SHIFT+CTRL+F3 and SHIFT+CTRL+F4 to reset the related mark and highlight.
Step 4 - use cm in normal mode to reset all highlights and marks

It is that simple.

添加新评论