On Sunday 10 May 2009 5:53 pm, Alain Forget wrote:
>
> I've been using gVim in Windows for a year now, but there is one thing I've
> been unable to do (or figure out via Googling):
>
> 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? (Ctrl-F
> and Ctrl-H are typically the shortcuts for Find and Find & Replace in the
> Microsoft Windows world, so it's just what many Windows users are familiar
> with.)
>
> I imagine there should be two "imap" or "inoremap" instructions I could put
> in the mswin.vim file, but I don't know how to programmatically display the
> Find... and Find and Replace... dialog boxes. To illustrate, I'm pretty sure
> this should work:
>
> inoremap <C-F> [INSERT COMMAND TO DISPLAY "FIND..." HERE]
> inoremap <C-H> [INSERT COMMAND TO DISPLAY "FIND AND REPLACE..." HERE]
>
> I just haven't been able to find what those two commands are. Any ideas?
find and replace have a dialog accessible via:
:promptrepl
you can use it for finding or for finding and replacing
sc
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---