Hello - I didn't understand the 'noh' part, nor why ':map' wouldn't do but it has to be ':nnoremap', whatever that is. It is mentioned in the manual, but not really explained, as far as I can see.
I would never have guessed that I had to use ':nnoremap'. Regards _John_ François Ingelrest wrote: > On Tue, Jul 21, 2009 at 13:11, John Sampson<[email protected]> wrote: > >> Many thanks - but even after searching the manual etc. I do not >> understand how this solution >> is constructed or arrived at. Perhaps Vim is not for me. >> > > What don't you understand? The most complicated part of it is the > regular expression, which you already figured out in your first > e-mail. The rest is just a mapping, saying "when I press F8, execute > what follows", and what follows is the substitute command. The 'noh' > part is used to avoid keeping the searched pattern highlighted. > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4264 (20090721) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
