aboutsummaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
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