1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Move guivim config into vimrc so it works with VimR

This commit is contained in:
Daniel Barber 2017-02-05 17:44:06 +00:00
parent 928c0b2825
commit 9e337a1e26
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 19 additions and 16 deletions

View File

@ -1,16 +0,0 @@
" Remove scrollbars
set guioptions-=R
set guioptions-=r
set guioptions-=L
set guioptions-=l
" Set GUI font according to OS
if has("gui_macvim")
set guifont=Source\ Code\ Pro:h14
elseif has("gui_gtk2")
set guifont=Source\ Code\ Pro\ 10
endif
" Color scheme
set background=dark
colorscheme gruvbox

View File

@ -1,6 +1,25 @@
" Color scheme
colorscheme Tomorrow-Night
if has("gui_running")
" Set GUI font according to OS
if has("gui_macvim") || has("gui_vimr")
set guifont=Source\ Code\ Pro:h14
elseif has("gui_gtk2")
set guifont=Source\ Code\ Pro\ 10
endif
" Color scheme
set background=dark
colorscheme gruvbox
" Remove scrollbars
set guioptions-=R
set guioptions-=r
set guioptions-=L
set guioptions-=l
endif
" Map ctrl-hjkl for easy window movement
map <c-h> <c-w>h
map <c-j> <c-w>j