aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-11-09 18:51:44 +0800
committerGitHub <noreply@github.com>2019-11-09 18:51:44 +0800
commit76d8e974490ab56b93624cb9ae00b77ebfbafad5 (patch)
tree34f82b5a1e736484b226c102d681112222938309
parent66f2c7a8a653c2c5ed4c9934c746270794d1b95c (diff)
Update init.vim
-rw-r--r--init.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/init.vim b/init.vim
index c851c02..d89deff 100644
--- a/init.vim
+++ b/init.vim
@@ -50,7 +50,17 @@
"}
"{ Main configurations
-let g:nvim_config_root = stdpath('config')
+" 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 = 1
+else
+ let g:nvim_system_wide = 0
+endif
+
+let g:nvim_config_root = expand('<sfile>:p:h')
+
let g:config_file_list = ['variables.vim',
\ 'options.vim',
\ 'autocommands.vim',