Friday, September 16, 2011

Re: gvim unhighlight last search

On Wed, Sep 14, 2011 at 4:02 PM, AK <andrei.avk@gmail.com> wrote:
. . .
:nohl

Often people map <c-l> to :nohl<cr><c-l>

I'm just curious about this... I usually just type :noh, but thought this might be a good idea.  However, I tried it, and it seemed to be recursive, as vim continually seemed to be repeating the command, and I was unable to enter any other commands, and had to close the window.

I was able to do something similar which worked:
map <c-l> :nohl<cr>:redr<cr>

Did I do something wrong?

 -Marty

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: