On 27 May 2009, at 11:51, Nick Cripps wrote:
> > Hi, > I've been using emacs for a while and recently decided that I'm fed up > with it. vim looks like it will suit me much better, but I'm still > learning to use it. > > One thing I don't like so much is the search highlighting behavior. In > emacs matches are highlighted while you type the expression (which > I've found you can enable in vim by adding :set incsearch to .vimrc) > and continue to be highlighted until you do anything not related to > searching (such as move the cursor). > > What I would like is to have all matches highlighted from when I > perform the search and stay highlighted only until I press any key > other than n or N (ie emacs highlighting behavior). > > I've tried googling for an answer but not found anything. Anyone know > how I can get this? > > Thanks, > Nick Stick this in your .vimrc " Switch off highlighting after hitting return nnoremap <CR> :noh<CR> Of course you can change they key, in this case <CR> Cheers, Jerry --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---