"{-- Commands to highlight the word under the cursor without moving the buffer
" view or cursor. --
" Case sensitive, partial match inclusive.
noremap hi :set hlsearch:let @/=''
" Case sensitive, no partial match.
noremap ho :set hlsearch:let @/='\<\>'
" Case insensitive, partial match inclusive.
noremap hu :set hlsearch:let @/='\c'
" Case insensitive, no partial match.
noremap hy :set hlsearch:let @/='\<\>\c'
"----}
" Command to remove highlighting.
noremap noh :noh
Monday, December 2, 2013
Vim Highlight Shortcuts
Highlighting in Vim is super useful when trying to quickly see where something is being used. The following commands can be added to your vimrc file to make highlighting a breeze:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment