sponsor Vim development Vim logo Vim Book Ad

Highlighter.vim : Want to mark up your files with a highlighter?

 script karma  Rating 43/27, Downloaded by 1718  Comments, bugs, improvements  Vim wiki

created by
David Larson
 
script type
utility
 
description
This plugin gives you the capability to mark up your files as if you had a highlighter.

It's a really useful aid for inspecting log files and marking important sections in source code and documents (even vim help files).

The highlights are remembered, even after you close the file. You can also distribute the marks so others can see the highlights you've made.

There are a number of different highlighters available for use. (NOTE: you will probably want to create mappings for these commands)
:WordHighlighter
Highlight the word under the cursor

:SelectionHighlighter
Highlight the current selection. A visual mapping for this command is recommended.

:SearchPatternHighlighter
Highlight the current search pattern.

:ClearAllHighlighters
Clear all highlights made in this file.

:ClearCurrentHighligher
Clear the Highlighter under the cursor

:ConfigureHighlighter
Open the configure window. From here you can configure how the highlighter colors are determined - randomized, use a favorite color, etc.

Look under Plugin->Highlighter for more options.

The highlighter only works with gvim and 'syntax' must be on.  Also, the terminal must support vim colors in the format #rrggbb.

Comments/suggestions/complaints are gladly taken.
 
install details
Drop into ~/.vim/plugin, then read the opening comments in ~/.vim/plugin/highlighter.vim.
 

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
highlighter.vim 1.5 2007-08-13 6.0 David Larson This version no longer adds "a" to guioptions, it can have bad effects on windows machines. Thanks to Cristian Ioneci and Stefano Piccardi for pointing it out. Changed how the selected text is determined.
highlighter.vim 1.4 2007-08-10 7.0 David Larson Highlighter settings were not restored properly on windows systems. Thanks to James Marshall for discovering the problem.
highlighter.vim 1.3 2007-08-09 7.0 David Larson The Selection Highlighter pen didn't work in some environments.
Thanks to James Marshall for finding this problem. Fixed it by adding 'a' to 'guioptions'.
ip used for rating: 18.222.69.152

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