tags:

views:

79

answers:

3

Hi all

When I try to search some words in a article, it would highlight the pattern. After I have already found what I want, what should I do to cancel the select pattern, which means I don't want the words to be highlighted.

Best Regards,

+2  A: 

The command you want is :nohl.

Moritz
+1  A: 

Before I turned search highlighting off permanently, /sdjrgjlsfj was my preferred command.

msw
+1. And I still do it, when working in the environment without my .vimrc.
Dummy00001
This is what I am doing now, I want to know is there a better methond
Yongwei Xing
+1  A: 

I've mapped ESC-u to do this (like the less command):

nnoremap <ESC>u :nohlsearch<CR>

I learned that from this page: http://www.semicomplete.com/blog/geekery/make-vim-hlsearch-like-less.html

jps