Thursday, December 26, 2013

New Blog

I've started a new blog titled JeffComputes. Some of the old content from this blog has been ported over and all future content will be exclusive to the new blog. Thanks for reading!

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:

"{-- 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