Awesome, that worked like a charm. I have another problem however... 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. Any ideas? Alain -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of John Beckett Sent: May 11, 2009 00:04 To: [email protected] Subject: RE: gVim Find & Replace shortcut keys Alain Forget wrote: > How can I set the shortcut key Ctrl-F to display the > Edit->Find... dialog box, and Ctrl-H to display the > Edit->Find and Replace... dialog box? Amazing ... I vaguely knew this was possible, so had a look and found the following: inoremap <C-F> <C-O>:promptfind<CR> inoremap <C-H> <C-O>:promptrepl<CR> I used the following to find what the commands were: :menu Edit I never use the menus, and would recommend the Vim method of using the command line which has history and <C-R> to insert registers and probably other good stuff. John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
