Created
October 26, 2011 07:57
-
-
Save emson/1315735 to your computer and use it in GitHub Desktop.
Piotr's .gvimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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