diff --git a/gvimrc.local b/gvimrc.local deleted file mode 100644 index 6ea4923..0000000 --- a/gvimrc.local +++ /dev/null @@ -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 diff --git a/vimrc.local b/vimrc.local index c9b00a3..2662e97 100644 --- a/vimrc.local +++ b/vimrc.local @@ -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 h map j