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?
Thanks,
Max.
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"
Max.