-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
39 lines (34 loc) · 1.07 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" MacVim-specific
if exists('g:gui_running')
if exists('g:neovide')
" Default neovide font:
"set guifont=Fira\ Mono\ for\ Powerline:h12
set guifont=MesloLGS\ NF:h12
else
" To display devicons
set guifont=MesloLGS-NF-Regular:h12
" To make it spaced like in iTerm
set linespace=1
endif
"set background=dark
" This is to counteract the 'colorscheme default' in .vimrc
"colorscheme macvim
" XXX dunno why I have to reset highlight after setting background to dark
"highlight ColorColumn term=reverse ctermbg=darkgrey guibg=black
" Overwrite functions of https://github.com/L-TChen/auto-dark-mode.vim/blob/master/plugin/autoDark.vim
if exists('g:vim')
func! s:ChangeBackground()
if (v:os_appearance)
call SetBackgroundDark()
else
call SetBackgroundLight()
endif
redraw!
endfunc
augroup AutoDark
autocmd OSAppearanceChanged * call s:ChangeBackground()
augroup END
endif
endif
" vim:set ai et sts=2 sw=2 tw=0: