tag:blogger.com,1999:blog-8344907271756111127.post285208585612076837..comments2019-03-17T10:54:55.647-07:00Comments on I Lessen Data: .vimrc: switching tabs in MacVimDanhttp://www.blogger.com/profile/03312048754374286109noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8344907271756111127.post-72478629872445400162013-08-09T13:06:49.545-07:002013-08-09T13:06:49.545-07:00Thank you. This had been a thorn in my side for aw...Thank you. This had been a thorn in my side for awhile.willhasletthttps://www.blogger.com/profile/16696074467461333925noreply@blogger.comtag:blogger.com,1999:blog-8344907271756111127.post-9991397464436449182012-06-27T12:23:38.196-07:002012-06-27T12:23:38.196-07:00Hey Ryan- thanks for cleaning this up; I've de...Hey Ryan- thanks for cleaning this up; I've deleted your earlier comments as this one seems to have it all. And thanks for the tip!Danhttps://www.blogger.com/profile/03312048754374286109noreply@blogger.comtag:blogger.com,1999:blog-8344907271756111127.post-1493008843113617422012-06-27T09:39:02.153-07:002012-06-27T09:39:02.153-07:00Sorry for the noise, here is the complete (and &qu...Sorry for the noise, here is the complete (and "entitied") code, which should be put in .gvimrc and also checks for MacVim:<br /><br />if has("gui_macvim")<br /> " In MacVim, you can have multiple tabs open. This mapping makes Ctrl-Tab<br /> " switch between them, like browser tabs. Ctrl-Shift-Tab goes the other way.<br /> noremap <C-Tab> :tabnext<CR><br /> noremap <C-S-Tab> :tabprev<CR><br /><br /> " Switch to specific tab numbers with Command-number<br /> noremap <D-1> :tabn 1<CR><br /> noremap <D-2> :tabn 2<CR><br /> noremap <D-3> :tabn 3<CR><br /> noremap <D-4> :tabn 4<CR><br /> noremap <D-5> :tabn 5<CR><br /> noremap <D-6> :tabn 6<CR><br /> noremap <D-7> :tabn 7<CR><br /> noremap <D-8> :tabn 8<CR><br /> noremap <D-9> :tabn 9<CR><br /> " Command-0 goes to the last tab<br /> noremap <D-0> :tablast<CR><br />endifRyan Leavengoodhttp://www.ryanleavengood.comnoreply@blogger.comtag:blogger.com,1999:blog-8344907271756111127.post-73056924636496885032012-02-09T01:46:48.302-08:002012-02-09T01:46:48.302-08:00Thanks a lot! This is what I am looking for!Thanks a lot! This is what I am looking for!nhhchuonghttps://www.blogger.com/profile/04077464140984811715noreply@blogger.comtag:blogger.com,1999:blog-8344907271756111127.post-66851828588421063812011-12-15T16:02:40.253-08:002011-12-15T16:02:40.253-08:00This is absolutely awesome -- now I can use years ...This is absolutely awesome -- now I can use years worth of finger muscle-memory from switching browser tabs in Vim. Thanks Dan. :)Jason Padvorachttps://www.blogger.com/profile/15449832834181890388noreply@blogger.com