From 960855931b522655fcabea9616f8edf5b6bf56d8 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 10 Nov 2019 11:03:55 +0800 Subject: [PATCH] Update plugin install logic Only install plugins system-wide if the system is *nix system --- init.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.vim b/init.vim index 55285bc..2d83e74 100644 --- a/init.vim +++ b/init.vim @@ -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(':p:h')