forked from pivotalforks/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gvimrc
63 lines (49 loc) · 1.16 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
set guifont=Monaco:h15
set bg=dark
colorscheme ir_black
" Start without the toolbar
set guioptions-=T
set guioptions-=L
set guioptions-=r
" Full size window
set columns=999
set lines=999
" highlight current row.
set cursorline
" *** MACVIM ONLY ***
if has("gui_macvim")
" Fullscreen takes up entire screen
set fuoptions=maxhorz,maxvert
" Command-Enter for fullscreen
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
endif
if exists("loaded_nerd_tree")
augroup AuNERDTreeCmd
autocmd AuNERDTreeCmd FocusGained * call s:UpdateNERDTree()
endif
" NERDTree utility function
function s:UpdateNERDTree(...)
let stay = 0
if(exists("a:1"))
let stay = a:1
end
if exists("t:NERDTreeBufName")
let nr = bufwinnr(t:NERDTreeBufName)
if nr != -1
exe nr . "wincmd w"
exe substitute(mapcheck("R"), "<CR>", "", "")
if !stay
wincmd p
end
endif
endif
if exists(":CommandTFlush") == 2
CommandTFlush
endif
endfunction
"-------------------------------------------
" LOCAL CONFIG
"-------------------------------------------
if filereadable(expand("~/.gvimrc.local"))
source ~/.gvimrc.local
endif