MacVim: Problems with Dvorak-QWERTY and mappings

27 views
Skip to first unread message

Tim Allen

unread,
Sep 28, 2007, 4:31:50 AM9/28/07
to vim_mac
Mac OS X (like Mac OS 9 before it) has a special keyboard layout
called "Dvorak-Qwerty" available in the International control panel.
It works just like the regular Dvorak layout, except that when you
hold down the Command key, it rearranges to QWERTY - that way, you can
use Dvorak for all your ordinary typing, but your muscle-memory
shortcuts like Cmd-Q and Cmd-W remain unaffected.

When I set up a mapping in MacVim like:

nmap <special> <D-e> :echo "foo"<CR>

...I would expect to have to press Command plus the key labelled "E"
to trigger it (even though that key produces "." in Dvorak. It turns
out I have to press Command plus the key labelled "D" (which is the
key that produces "e" in Dvorak).

Interestingly, shortcuts that appear in menus (such as <D-T> for New
Tab) work fine.

On a related note, it seems that while you can map either "<C-E>" or
"<C-e>" equivalently, it seems that trying to map <D-E> doesn't work
at all.

björn

unread,
Sep 28, 2007, 4:39:37 PM9/28/07
to vim...@googlegroups.com

Thanks for the report. I have found the problem, but I have to think
about how to fix it (I came up with a simple minded fix, which
subsequently broke something else)...I will let you know when it is
done.


/Björn

Reply all
Reply to author
Forward
0 new messages