sponsor Vim development Vim logo Vim Book Ad

highlight_word_under_cursor.vim : Temporary highlighting of all occurrences of the currently focused word.

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

created by
joey twiddle
 
script type
utility
 
description
When you focus on a new word, all other occurrences of the word are lit up in red.

If you move again but remain on the same word, the highlight is removed.  So e.g. I just hit Space when I want to undo the highlighting.
 
install details
Drop in plugin/

If you want to also highlight words which *contain* the current word, without being an exact match:

:let g:hiword_partial = 1
 

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
highlight_word_under_cursor.vim 1.14 2012-10-24 7.0 joey twiddle Initial upload
ip used for rating: 142.132.191.50

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