simple_highlighting : Easily highlight multiple words in all buffers
| script karma
Downloaded by 79
Comments, bugs, improvements
script versions (upload new version)
|Script is designed to quickly and easily highlight multiple different words in multiple different highlighting styles. And keeping those highlights between buffers.
Brief example of usage:
* Place your cursor on a word and use \h to highlight it.
* Running \h while cursor over another word will add it to the default (0) highlight slot.
* 2\h will highlight a new word in 2 highlight slot.
* Change buffer and highlights will remain the same
* :Hc 2 will clear all the of slots 2's highlights.
* :Hs to changes the search pattern to all the current highlighted word
* :Hc will clear all highlights.
Currently only extensively tested on windows. Please let me know of any bugs or otherwise.
Note: current limitation in script is that is users mark x to stop the Hc (highlight clear) function from moving the cursor. If you can help remove this dependance please let me know.
<leader> default is \
[<number>] <Leader> h -> to highligt the whole word under the cursor, highlighted colour is determed by the number the number defined above if no number is given 0 is used
numbers can be between 0 to 7 default is 0. More can easily be added and there representative colour changed at the start of the script.
:Hc [0,2...] <return> -> HighlightClear: clears the highlighted patterns listed or all if no number(s) passed
:Hs [0,2...] <return> -> HighlightSearch: changes the search pattern to the highlighted patterns listed or all if no number(s) passed
:call HighlightAdd(number, pattern) -> add the pattern to the given number's highlighting. Useful if you want to highlight more then a simple word.
<http://vim.wikia.com/wiki/Highlight_multiple_words> is a very good alternative to this script. This script is designed to have less functionality and be easier to use.
|Copy contents of script and past into your _vimrc/.vimrc file.|
Click on the package to download.
ip used for rating: 126.96.36.199