On 19/12/08 08:44, John Beckett wrote:
> Max Waterman wrote:
>> My laptop has the F1 key where my fingers expect the Esc key
>> to be, so I tried to ':map ctr-vf1 ctr-vesc', but it made no
>> difference.
>>
>> Can someone tell me how to remap the f1 key to escape?
>
> You need a mapping that's active in insert mode:
>
> :imap<F1>  <Esc>
>
> John

You might want Command-line as well as Insert, and in addition Normal, 
Visual and Operator-Pending. For that, use the following two mappings:

        map     <F1>    <Esc>
        map!    <F1>    <Esc>

Best regards,
Tony.
-- 
We are confronted with insurmountable opportunities.
                -- Walt Kelly, "Pogo"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

  • F1 Max Waterman
    • RE: F1 John Beckett
      • Re: F1 Tony Mechelynck

Reply via email to