-
Notifications
You must be signed in to change notification settings - Fork 0
/
gvimrc
55 lines (41 loc) · 899 Bytes
/
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
" Ugly toolbar out of my way!
set guioptions=egrt
" Don't harass me with silly sounds or flashes
set visualbell
set t_vb=
" A nice dimension
set lines=55
set columns=120
if has("gui_macvim")
" MacVim options
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h14
set linespace=2
" When I go full screen, I mean FULL
set fuoptions=maxvert,maxhorz
" TextMate-like indentation
nmap <D-[> <<
nmap <D-]> >>
vmap <D-[> <gv
vmap <D-]> >gv
imap <D-[> <Esc><<
imap <D-]> <Esc>>>
" TextMate-like commenting
nmap <D-/> gcc
vmap <D-/> gc
imap <D-/> <Esc>gcci
else
" gVim counterpart
set guifont=DejaVu\ Sans\ Mono\ 10
set linespace=0
" TextMate-like indentation
nmap <M-[> <<
nmap <M-]> >>
vmap <M-[> <gv
vmap <M-]> >gv
imap <M-[> <Esc><<
imap <M-]> <Esc>>>
" TextMate-like commenting
nmap <M-/> gcc
vmap <M-/> gC
imap <M-/> <Esc>gcci
endif