Created
November 15, 2012 03:02
-
-
Save ayosec/4076380 to your computer and use it in GitHub Desktop.
Vim: Highlight word under cursor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" When the cursor is hold on a word, that word is highlighted. | |
" When the cursor is moving, the highlight is hidden | |
set updatetime=300 | |
au! CursorMoved * set nohlsearch | |
au! CursorHold * set hlsearch | let @/='\<'.expand("<cword>").'\>' | |
set hlsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems it's intended to work in gvim.