Mercurial > dotfiles
comparison install.py @ 494:76defcf6bf02
Add gvimrc file.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 12 Nov 2021 10:50:18 -0800 |
parents | b4d2eca00197 |
children | 38aa9895725d |
comparison
equal
deleted
inserted
replaced
493:16cac382ca7c | 494:76defcf6bf02 |
---|---|
187 if is_windows: | 187 if is_windows: |
188 vimrc_path = '~/_vimrc' | 188 vimrc_path = '~/_vimrc' |
189 writelines(vimrc_path, [ | 189 writelines(vimrc_path, [ |
190 'set runtimepath+=%s' % nixslash(_p('vim')), | 190 'set runtimepath+=%s' % nixslash(_p('vim')), |
191 'source %s' % nixslash(_p('vim', 'vimrc')) | 191 'source %s' % nixslash(_p('vim', 'vimrc')) |
192 ]) | |
193 | |
194 # Create a gvimrc file mostly to fix a bug with Scoop, which | |
195 # installs a _gvimrc in the base runtime path, and it can mess | |
196 # up colors and settings. | |
197 gvimrc_path = '~/.gvimrc' | |
198 if is_windows: | |
199 gvimrc_path = '~/_gvimrc' | |
200 writelines(gvimrc_path, [ | |
201 'source %s' % nixslash(_p('vim', 'gvimrc')) | |
192 ]) | 202 ]) |
193 | 203 |
194 _install_vim_bundle(cfg, 'vimbundles', _p('vim', 'bundle'), force) | 204 _install_vim_bundle(cfg, 'vimbundles', _p('vim', 'bundle'), force) |
195 _install_vim_bundle(cfg, 'vimbundles:local', _p('vim', 'local'), force) | 205 _install_vim_bundle(cfg, 'vimbundles:local', _p('vim', 'local'), force) |
196 | 206 |