On Fri 21-Jul-06 1:36pm -0600, Steve Hall wrote:
> From: Bill McCarthy, Jul 21, 2006 2:14 PM >> >> I clear the last search pattern often enough that I use a >> mapping: >> >> map <leader>\ :let @/=""<bar>echo "Search pattern cleared"<cr> > > Which does the same as: > > :noh They do produce the same immediate visual affect. They are not the same. :noh leaves the search pattern active. After ':noh' try 'n' to see the highlighting back on. let @/="" replaces the last search pattern with an empty string. Typing 'n' will produce this message: E35: No previous regular expression -- Best regards, Bill