On May 11, 1:54 pm, Alain Forget <[email protected]> wrote:
> Awesome, that worked like a charm. I have another problem however...
>
Next time, please start a new thread for a new question. Also, please
"bottom-post" in accordance with posted guidelines:
http://groups.google.com/group/vim_use/web/vim-information
> 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>
>
> I get an error saying "E163: There is only one file to edit", rather than
> the, "E486: Pattern not found: \V\C[MY SEARCH TEXT]" I would have expected
> from the Find Next command.
>
The "n" keystroke is something you type directly in normal mode, it is
not an ex command (command-line mode). You have accidentally made a
mapping to issue the :next command instead of simply pressing n.
Your mapping should be <C-O>n rather than <C-O>:n<CR>.
See :help vim-modes, :help n, and :help :next
Vim has a wide range of normal, insert, and command-line mode
commands. If you have not already done so, Vim ships with a tutorial
that can give you a great introduction.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---