On Jul 21, 1:49 am, björn <[email protected]> wrote:
> Hi,
>
> When I press Cmd-c in insert mode Vim inserts the text "<D-c>" into
> the buffer. I find this kind of weird and was about to patch this so
> that nothing happened if you press a Cmd-key which is not bound to
> anything. Then I realized that if I e.g. press F2 then <F2> gets
> inserted into the buffer so maybe this is a "feature" and not a bug
> (if it is a feature, then I don't see the point of it since you press
> Ctrl-v, then a key to see its "name").
>
> Has this bothered anybody else?
>
> Would anybody be upset if I changed it so that nothing happens when
> pressing an unbound Cmd-key in insert mode (I was not going to do
> anything about F2 etc.)?
>
> Or should I simply leave things the way they are?
>
> Comments are welcome,
> Björn
Yes, AFAIK this is a feature. Even on Linux, if I press, let's say,
Shift-F1 in Insert mode, what gets inserted is <S-F1>. I'd say that
could make the writing of Vim scripts easier... as long as you
remember which special keys have neither a predefined function nor a
mapping in Insert mode.
If one of those keys bothers you, let's say because you frequently
press it unintentionally, you could use, let's say,
:map! <D-C> <Nop>
to make it "do nothing". I don't think the executable (or the C code)
should be changed, that's for each user to do, or not to, probably in
his vimrc.
Best regards,
Tony.
--
... But we've only fondled the surface of that subject.
-- Virginia Masters
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---