-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgvimrc
More file actions
32 lines (24 loc) · 680 Bytes
/
gvimrc
File metadata and controls
32 lines (24 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
" macmenu commands only execute in .gvimrc
if has("gui_running")
" remove toolbar
set guioptions-=T
" highlight cursor line
set cursorline
endif
if has("gui_macvim")
set guifont=Monaco:h13
" save undo's after file closes
set undofile
" use option (alt) as meta key
set macmeta
" free command-w
macmenu File.Close key=<nop>
" free command-p
macmenu File.Print key=<nop>
" free command-l
macmenu Tools.List\ Errors key=<nop>
" free command-b
macmenu Tools.Make key=<nop>
" free command-h (hide window), remap to control-command-h
let foo=system('defaults write org.vim.MacVim NSUserKeyEquivalents -dict-add "Hide MacVim" "@\$H"')
endif