-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gvimrc
98 lines (84 loc) · 3.38 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
" ,-.-. .=-.-. ___ _,.----.
" ,--.-./=/ ,//==/_ /.-._ .'=.'\ .-.,.---. .' .' - \
" /==/, ||=| -|==|, |/==/ \|==| |/==/ ` \/==/ , ,-'
" \==\, \ / ,|==| ||==|,| / - |==|-, .=., |==|- | .
" \==\ - ' - /==|- ||==| \/ , |==| '=' /==|_ `-' \
" \==\ , ||==| ,||==|- , _ |==|- , .'|==| _ , |
" |==| - ,/|==|- ||==| _ /\ |==|_ . ,'.\==\. /
" \==\ _ / /==/. //==/ / / , /==/ /\ , )`-.`.___.-'
" `--`--' `--`-` `--`./ `--``--`-`--`--'
"
" Specific vim setting for GUI modes (gvim)
" Alexandre Gauthier <alex@underwares.org>
"
" Up to date version always on github:
" https://github.com/mrdaemon/vimconfigs
"
"-----------------------------------------------------------------------------
" Remove toolbar and scrollbars from gVim,
" because, frankly, they are a waste of space.
set guioptions-=T
set guioptions-=r
set guioptions-=l
set guioptions-=L
set guioptions-=R
" Add Vim icon to window, where it is shown depends on platform, windowing
" system, X11 server depth, etc etc.
set guioptions+=i
" Automagically yank to windowing system clipboard on visual select.
" This makes gvim behave like a normal unix application.
set guioptions+=a
" Only remove menubar on non-windows platforms.
" The windows version looks a bit like ass without it,
" somehow, it develops ugly white borders around
" the bottom frame, I have no clue where they come from.
if !has("gui_win32")
:set guioptions-=m
endif
" colorscheme to use for GUI
set background=dark
colorscheme hybrid
" Overridding the color column color in gvim as well -- the colorscheme
" change above will reset it.
" TODO: make this into a function.
if version >= 703
set colorcolumn=80 " Highlight column 80, as a guide.
" Override color for highlighted column
" Often it is this eye melting red (Unecessary for liquidcarbon and nazca)
" hi ColorColumn term=reverse ctermbg=238 guibg=#1f1f1f
endif
" Set GUI Font depending on the kind of gui/platform being loaded.
" TODO: Set these fonts correctly once I load this on my other work platforms.
if has("gui_win32")
set guifont=Dejavu_Sans_Mono_for_Powerline:h11:cANSI
elseif has("gui_macvim")
set antialias " Use smooth, antialiased fonts (OS X Specific)
set guifont=Menlo\ Regular:h12
else
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 10
endif
" MacVim specific: Set fullscreen options to be as full screen as possible
if has("gui_macvim")
set fuoptions=maxhorz,maxvert
endif
" Set semi-sensible default window sizes for gui
if has('gui_running')
set lines=54 " Yes 54 lines is completely arbitrary.
set columns=100 " I like some extra horizontal space by default.
" For some reason it helps me focus, and not everyone
" aligns their code to 80 columns.
endif
" Technically, according to the documentation
" (try :help mousehide if you think I'm a filthy liar)
" The default behavior in the gui is to hide the mouse pointer
" when you are typing, and bring it back once you stop.
" On my system it's just always gone forever.
" So, we remedy this.
"set nomousehide
" 'Config changed' autocmd hook
autocmd BufWritePost $MYGVIMRC let g:needrestart = 1
" Attempt to source .gvimrc.local for very machine-specific configurations that
" would benefit absolutely no one by being here. Mostly bug workarounds.
if filereadable(expand('~/.gvimrc.local'))
source ~/.gvimrc.local
endif