Skip to content

Instantly share code, notes, and snippets.

@emson

emson/.gvimrc

Created Oct 26, 2011
Embed
What would you like to do?
Piotr's .gvimrc
if has("gui_macvim")
" Command-T for CommandT
macmenu &File.New\ Tab key=<D-T>
map <D-t> :CommandT<CR>
imap <D-t> <Esc>:CommandT<CR>
" Command-Return for fullscreen
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
" Command-Shift-F for Ack
map <D-F> :Ack<space>
" Command-/ to toggle comments
map <D-/> <plug>NERDCommenterToggle<CR>
" Command-][ to increase/decrease indentation
vmap <D-]> >gv
vmap <D-[> <gv
" Command-Option-ArrowKey to switch viewports
map <D-M-Up> <C-w>k
imap <D-M-Up> <Esc> <C-w>k
map <D-M-Down> <C-w>j
imap <D-M-Down> <Esc> <C-w>j
map <D-M-Right> <C-w>l
imap <D-M-Right> <Esc> <C-w>l
map <D-M-Left> <C-w>h
imap <D-M-Left> <C-w>h
" Adjust viewports to the same size
map <Leader>= <C-w>=
imap <Leader>= <Esc> <C-w>=
end
" Remove the toolbar by default
set go-=T
set gfn=Menlo:h14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment