commit 8925a80b5408e3f8f1ad621c2b9bc07714c08a8a (patch)
parent 8f7c765b5a64892d2f987326e580ee7dd45a6617
Author: Alexander Karle <akarle@umass.edu>
Date: Fri, 27 Jul 2018 16:40:02 -0400
Add gvimrc for Windows usage
Diffstat:
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/vim/gvimrc b/vim/gvimrc
@@ -0,0 +1,15 @@
+" Disable visual bells
+set noerrorbells visualbell t_vb=
+autocmd GUIEnter * set visualbell t_vb=
+
+" Gonna be using that system clipboard
+set clipboard=unnamed
+
+" Pretty printing
+set printoptions=left:1in,right:1in,paper:letter
+set printfont=Consolas:h11
+
+" Minimal UI
+set guioptions= " Don't show guioptions (toolbar, scrollbar,..)
+set guifont=Consolas:h11 " Font that doesn't hurt my eyes
+set guicursor=a:blinkon0 " Don't blink the cursor (not my thang)
diff --git a/vim/vimrc b/vim/vimrc
@@ -98,9 +98,9 @@ endif
" COLORSCHEME
" if can use truecolor, do
-if (has("termguicolors"))
+if (has("termguicolors") || has('gui_running'))
" load colorscheme if plugins installed
- if filereadable(expand(s:vimdir . "/bundle/gruvbox/colors/gruvbox.vim"))
+ if filereadable(expand(s:vimdir . "/bundle/gruvbox/colors/gruvbox.vim")) || filereadable(expand(s:vimdir . "/colors/gruvbox.vim"))
let g:gruvbox_italic = 1
set termguicolors
colorscheme gruvbox