sponsor Vim development Vim logo Vim Book Ad

Highlight and Mark Lines : Highlights and Marks lines (up to 3) and allows moving between them.

 script karma  Rating 1/1, Downloaded by 497  Comments, bugs, improvements  Vim wiki

created by
Ahmet Gokalp ERGEC
 
script type
utility
 
description
Inspired from other scripters. Thanks.

This utility was created because of needs as others. My job requires log
mining. Sometimes I need to highlight specific lines and moving between
them 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.
 
install details
Move the file to "plugins" directory of your Vim installation.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
hglt_mark.vim 0.2 2007-07-25 7.0 Ahmet Gokalp ERGEC Initial upload
ip used for rating: 13.59.34.87

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github