From 62d8266f0778724d8f2510e8b3df9b4d57a29da2 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 23:21:28 +0800 Subject: Update system check method --- init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.vim') diff --git a/init.vim b/init.vim index c94708f..b685255 100644 --- a/init.vim +++ b/init.vim @@ -50,6 +50,10 @@ "} "{ Main configurations +let g:is_win = has('win32') || has('win64') +let g:is_linux = has('unix') && !has('macunix') +let g:is_mac = has('macunix') + " 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. @@ -57,7 +61,7 @@ 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') + if !g:is_linux let g:nvim_system_wide = 0 endif endif -- cgit v1.2.3