Skip to content

Instantly share code, notes, and snippets.

@leonlee
Last active May 11, 2016 05:39
Show Gist options
  • Save leonlee/33d728b356020c6caef0 to your computer and use it in GitHub Desktop.
Save leonlee/33d728b356020c6caef0 to your computer and use it in GitHub Desktop.
" MacVim GUI mode
if has("gui_macvim")
set guifont=Monaco:h13
set guioptions=aAce
set fuoptions=maxvert,maxhorz
set noballooneval
" resize current buffer by +/- 5
nnoremap <M-Right> :vertical resize +5<CR>
nnoremap <M-Left> :vertical resize -5<CR>
nnoremap <M-Up> :resize -5<CR>
nnoremap <M-Down> :resize +5<CR>
" Command+Option+Right for next
map <D-M-Right> :tabn<CR>
" Command+Option+Left for previous
map <D-M-Left> :tabp<CR>
" Automatically resize splits
" when resizing MacVim window
autocmd VimResized * wincmd =
"disable print key
macmenu &File.Print key=<nop>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment