vim: avoid typos
Quickly check for variable across file and avoid typo by pressing *
over your variable in normal mode.
make sure you have set hlsearch
in your vimrc
or do :set hlsearch
in command-line mode
note: *
searches forward for the next occurrence of that word, and #
searches backwards.
tip: place :nnoremap <CR> :nohlsearch<cr>
in your vimrc to remove highlighting on hitting return/enter key
Written by Abhishek Srivastava
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#