From 96153ec039613c9f879fcb82aeee913c817c81bf Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 23:10:17 +1300 Subject: Use variable setting approach for 'guifont' A little easier to read. --- vim/gvimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/gvimrc b/vim/gvimrc index 286b84ba..33ee592e 100644 --- a/vim/gvimrc +++ b/vim/gvimrc @@ -2,9 +2,9 @@ " these are both workable monospace fonts, but Ubuntu Mono doesn't render very " nicely on Windows a lot of the time if has('unix') - silent! set guifont=Ubuntu\ Mono\ 12 + silent! let &guifont = 'Ubuntu Mono 12' else - silent! set guifont=Consolas:h11 + silent! let &guifont = 'Consolas:h11' endif " Use the system GUI clipboard; use console dialogs instead of popup windows; -- cgit v1.2.3 From 299ad07d14db67a016e561182d407cc2cfb6bc33 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 23:10:32 +1300 Subject: Set 'guioptions' flag by flag This is a bit easier to read than having the flags meanings in a block comment above the line. --- vim/gvimrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vim/gvimrc b/vim/gvimrc index 33ee592e..128a396a 100644 --- a/vim/gvimrc +++ b/vim/gvimrc @@ -7,9 +7,14 @@ else silent! let &guifont = 'Consolas:h11' endif -" Use the system GUI clipboard; use console dialogs instead of popup windows; -" use the gVim icon -set guioptions=aci +" Reset guioptions +set guioptions= +" Use the system GUI clipboard +set guioptions+=a +" Use console dialogs instead of popup windows +set guioptions+=c +" Use the gVim icon +set guioptions+=i " When the GUI starts, t_vb is reset to its default value, so it's necessary " to repeat this line from my .vimrc file that turns off visual bells -- cgit v1.2.3