aboutsummaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-12-09 23:21:28 +0800
committerjdhao <jdhao@hotmail.com>2019-12-09 23:21:28 +0800
commit62d8266f0778724d8f2510e8b3df9b4d57a29da2 (patch)
tree26843c9b95b4a69d240f2a81b4975ef8e08acba1 /init.vim
parent0e89d956fd59729a08d51d0d5865bea0aa3ed42d (diff)
Update system check method
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim6
1 files changed, 5 insertions, 1 deletions
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