Grep without storing search to the "/ register in Vim
- by Phro
In my .vimrc I have a mapping that makes a line of text 'title capitalized':
noremap <Leader>at :s/\v<(.)(\w{2,})/\u\1\L\2/g<CR>
However, whenever I run this function, it highlights every word that is at least three characters long in my entire document. Of course I could get this behaviour to stop simply by appending…