# HG changeset patch # User Ludovic Chabant # Date 1636743018 28800 # Node ID 76defcf6bf027b1709389cee823e35c718ec2d6c # Parent 16cac382ca7ca90486cc8606d66b4c0c326e9dee Add gvimrc file. diff -r 16cac382ca7c -r 76defcf6bf02 install.py --- a/install.py Fri Nov 12 10:49:22 2021 -0800 +++ b/install.py Fri Nov 12 10:50:18 2021 -0800 @@ -191,6 +191,16 @@ 'source %s' % nixslash(_p('vim', 'vimrc')) ]) + # Create a gvimrc file mostly to fix a bug with Scoop, which + # installs a _gvimrc in the base runtime path, and it can mess + # up colors and settings. + gvimrc_path = '~/.gvimrc' + if is_windows: + gvimrc_path = '~/_gvimrc' + writelines(gvimrc_path, [ + 'source %s' % nixslash(_p('vim', 'gvimrc')) + ]) + _install_vim_bundle(cfg, 'vimbundles', _p('vim', 'bundle'), force) _install_vim_bundle(cfg, 'vimbundles:local', _p('vim', 'local'), force) diff -r 16cac382ca7c -r 76defcf6bf02 vim/gvimrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/gvimrc Fri Nov 12 10:50:18 2021 -0800 @@ -0,0 +1,15 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +" Ludovic Chabant's ~/.gvimrc +" +" http://ludovic.chabant.com +" +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Set a variable that says we already sourced this file, for those few +" settings we don't want to re-apply. +if exists('g:sourced_gvimrc') + let g:resourcing_gvimrc = 1 +endif +let g:sourced_gvimrc = 1 +