diff --git a/doc/highlight.txt b/doc/highlight.txt new file mode 100644 index 0000000..24b33a3 --- /dev/null +++ b/doc/highlight.txt @@ -0,0 +1,57 @@ +*highlight.txt* functionality of the highlight registry + +============================================================================ +CONTENTS *highlight-contents* + +1. Usage .................................................. |highlight-usage| + +============================================================================ +Section 1: Usage *highlight-usage* + +["x]& Highlights the under the cursor + into register x. + +["x]y& Sets the search register to the contents of + register x. + +["x]d& Removes the from register x. + +["x]c& Emptys register x. No patterns previously + belonging inside this register will be + highlighted. + +["x]* Highlights the under the cursor + into register x. Moves to the next + occurrence of the . + +["x]# Highlights the under the cursor + into register x. Moves to the previous + occurrence of the . + +["x]g& Highlights the under the cursor, but + without forcing any highlighted occurrences + to be a word. That is, if the selected + is a substring of any text in the + current buffer, the substring will also be + highlighted. + +["x]g* Works like ["x]g& but also moves to the next + occurrence of the pattern. + +["x]g# Works like ["x]g& but also moves to the + previous occurrence of the pattern. + +v_["x]& Note the v indicates visual mode. Works like + g&, but with the visually selected region. + +v_["x]* Note the v indicates visual mode. Works like + g*, but with the visually selected region. + +v_["x]# Note the v indicates visual mode. Works like + g#, but with the visually selected region. + +v_["x]d& Note the v indicates visual mode. Removes + the visually selected region from register + x. + +vim:tw=78:ts=8:ft=help:norl: diff --git a/doc/tags b/doc/tags new file mode 100644 index 0000000..bbe3409 --- /dev/null +++ b/doc/tags @@ -0,0 +1,3 @@ +highlight-contents highlight.txt /*highlight-contents* +highlight-usage highlight.txt /*highlight-usage* +highlight.txt highlight.txt /*highlight.txt* diff --git a/plugin/hightlight.vim b/plugin/hightlight.vim index c8a4823..1cd5449 100644 --- a/plugin/hightlight.vim +++ b/plugin/hightlight.vim @@ -183,12 +183,14 @@ call s:InitRegister('9', 'Black') call s:AppendToSearch(v:register, @/) +" Word Boundary Search Modifications noremap HighlightRegistry_AppendToSearch \ :call AppendToSearch(v:register, '\<'.expand('').'\>') \ :call CountLastSeen() noremap HighlightRegistry_RemoveFromSearch \ :call RemoveFromSearch(v:register, '\<'.expand('').'\>') +" Arbitrary Search Modifications noremap HighlightRegistry_GlobalAppendToSearch \ :call AppendToSearch(v:register, expand('')) \ :call CountLastSeen() @@ -198,15 +200,17 @@ noremap HighlightRegistry_VisualAppendToSearch noremap HighlightRegistry_VisualRemoveFromSearch \ :call RemoveFromSearch(v:register, GetVisualSelection()) +" Register Modifications noremap HighlightRegistry_ClearRegister \ :call ClearRegister(v:register) noremap HighlightRegistry_ActivateRegister \ :call ActivateRegister(v:register) +" Miscellaneous Mappings noremap HighlightRegistry_CountLastSeen \ :call CountLastSeen() -" Basic Mappings +" Default Mappings nmap & HighlightRegistry_AppendToSearch nmap * :silent norm! *& nmap # :silent norm! #&