rzyns / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

mapping Command + Control + Shift + e #317

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to map the keys Control + Command + Shift + e, Here is a simple example 
that will insert the text "hi" where the cursor is

:nmap <C-D-E> ihi
:nmap <D-E> ihi

The first one does not work, the second one does.
so Command+Shift+e works, but Control+Command+Shift+e does not work.

Instead, it jumps to the end of the word, like e normally does.

System Version: Mac OS X 10.6.6 (10J567)
Kernel Version: Darwin 10.6.0
MacVim Version:  7.3.107

"mvim -v" says version is 7.3.107
"MacVim->About MacVim" says version is "Snapshot 57"

I also asked on Stack Overflow, mostly just shows a bit more of what I'm 
actually trying to do, 
http://stackoverflow.com/questions/4982246/vim-multiple-meta-keys

Original issue reported on code.google.com by josh.ch...@gmail.com on 13 Feb 2011 at 4:19

GoogleCodeExporter commented 9 years ago
The problem is that you cannot in general map the Ctrl key with anything except 
ASCII chars 64-95 (there are exceptions, such as space or delete).

That being said, maybe it would be possible to patch Vim so that you can bind 
do anything when Cmd is being held as well.  I'll put that on my todo list 
(patches are welcome...I don't have much free time at the moment).

If you have further questions about mapping keys, please post to vim_use or 
vim_mac.

Original comment by bjorn.winckler@gmail.com on 13 Feb 2011 at 11:23