diff options
| author | jdhao <jdhao@hotmail.com> | 2019-11-10 11:03:55 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2019-11-10 11:03:55 +0800 |
| commit | 960855931b522655fcabea9616f8edf5b6bf56d8 (patch) | |
| tree | 1fc4e19dc391142b904bb21013dea2c3500c7285 | |
| parent | 098ef4c875e9c7a20d0267bc8b0cd17e80c0c8bf (diff) | |
Update plugin install logic
Only install plugins system-wide if the system is *nix system
| -rw-r--r-- | init.vim | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -53,10 +53,13 @@ " If you are using Neovim on Linux system and want to set it up system wide " for users, set g:nvim_system_wide to 1. If you only want to use it for " personal need, set this variable to 0. -if has('unix') - let g:nvim_system_wide = 0 -else - let g:nvim_system_wide = 0 +let g:nvim_system_wide=0 + +" Do not set this varialbe if the system is not *nix +if g:nvim_system_wide + if !has('unix') + let g:nvim_system_wide = 0 + endif endif let g:nvim_config_root = expand('<sfile>:p:h') |
