MacVim Quicktip: Tab switching with Command-[0-9]

Up until now, I've been wondering how to bind Command hotkeys in MacVim. The answer is <D-foo>.

So, because I simply love Cmd-[0-9] and Cmd-Shift-Right/Left in my Terminal and browser, here's how to bind these in MacVim:

noremap <D-1> 1gt
noremap <D-2> 2gt
noremap <D-3> 3gt
noremap <D-4> 4gt
noremap <D-5> 5gt
noremap <D-6> 6gt
noremap <D-7> 7gt
noremap <D-8> 8gt
noremap <D-9> 9gt
noremap <D-9> 10gt
noremap <D-S-right> gt
noremap <D-S-left> gT

Comments
Posted by: sarah §

Tävla om en mobil på min blogg ;)

2010-02-14 @ 12:59:54
URL: http://sarahtjulander.blogg.se/

Comment the entry:

Name: (required, possibly pseudonym)
Remember me (cookie)

E-mail: (not required, never published, solely for me to reply to you in person)

URL:

Comment:

RSS 2.0