inoremap <F3> <c-o>n Sent via BlackBerry from T-Mobile -----Original Message----- From: Alain Forget <[email protected]>
Date: Mon, 11 May 2009 15:14:23 To: <[email protected]> Subject: RE: gVim Find Next shortcut key > > Is there any way to map the <F3> key to "Find Next" (i.e. find the next > > occurrence of the string I just searched for) in gVim? > > > > Goggling found that the <n> keystroke does this, but I am unclear on its > > usage. For example, when in insert mode, and I do the following: > > > > <C-O>:n<CR> > > Sooooo close :) > > :nnoremap <f3> n > > ...and soooo boringly simple :) > > The catch is that "n" searches in the same direction as the last > search. So if you search backwards, "n" will continue to search > backwards. > > -tim But how do I make it work when I'm in insert mode? I would have thought: inoremap <F3> <C-O>:n<CR> would have done the trick, but it doesn't. Any ideas? Alain --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
