-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgvimrc
71 lines (58 loc) · 1.56 KB
/
gvimrc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if has("gui_macvim")
" Fullscreen takes up entire screen
set fuoptions=maxhorz,maxvert
" Command-T for CommandT
macmenu &File.New\ Tab key=<D-T>
map <D-t> :CommandT<CR>
imap <D-t> <Esc>:CommandT<CR>
" Command-R to refresh Command-T
map <D-r> :CommandTFlush<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
" Map Command-# to switch tabs
map <D-0> 0gt
imap <D-0> <Esc>0gt
map <D-1> 1gt
imap <D-1> <Esc>1gt
map <D-2> 2gt
imap <D-2> <Esc>2gt
map <D-3> 3gt
imap <D-3> <Esc>3gt
map <D-4> 4gt
imap <D-4> <Esc>4gt
map <D-5> 5gt
imap <D-5> <Esc>5gt
map <D-6> 6gt
imap <D-6> <Esc>6gt
map <D-7> 7gt
imap <D-7> <Esc>7gt
map <D-8> 8gt
imap <D-8> <Esc>8gt
map <D-9> 9gt
imap <D-9> <Esc>9gt
endif
" Start without the toolbar
set guioptions-=T
" Have the GUndo preview diff display across the bottom of the frame
" rather than be in a tiny window below the graph
let g:gundo_preview_bottom = 1
set ch=2
set background=dark
" color solarized
if has("win32")
" Font sizes seem to be bigger in Windows, so set smaller
set guifont=Consolas:h12,Courier\ New:h12
else
set guifont=CamingoCode-Regular:h13,DejaVuSansMonoForPowerline:h12,Anonymous\ Pro:h14,Consolas:h12,Monaco:h12
end
set columns=80
set lines=40
map <Leader>x2 :set columns=160<CR>
map <Leader>x1 :set columns=80<CR>