aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-02 08:54:51 +0800
committerjdhao <jdhao@hotmail.com>2020-09-02 08:54:51 +0800
commitc6b71c1dea47aed287766e2d36674a70cf4ed810 (patch)
treecd1b0202d9c823d1e4dc648febf64a0060705631
parent2cbd9619e79681aceeb483825add9fe6908c43bf (diff)
remove global setting since it is not used anyway
-rw-r--r--init.vim12
-rw-r--r--plugins.vim9
2 files changed, 2 insertions, 19 deletions
diff --git a/init.vim b/init.vim
index ad4c013..152ef0d 100644
--- a/init.vim
+++ b/init.vim
@@ -54,18 +54,6 @@ 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.
-let g:nvim_system_wide=0
-
-" Do not set this varialbe if the system is not *nix
-if g:nvim_system_wide
- if !g:is_linux
- let g:nvim_system_wide = 0
- endif
-endif
-
let g:nvim_config_root = expand('<sfile>:p:h')
let g:config_file_list = ['variables.vim',
diff --git a/plugins.vim b/plugins.vim
index 22e11b9..fe548a1 100644
--- a/plugins.vim
+++ b/plugins.vim
@@ -27,13 +27,8 @@ if g:is_win || g:is_mac
endif
endif
-" Set up directory to install the plugins based on whether you are installing
-" neovim system wide or for personal use.
-if g:nvim_system_wide
- let g:PLUGIN_HOME="/usr/local/share/nvim/site"
-else
- let g:PLUGIN_HOME=expand(stdpath('data') . '/plugged')
-endif
+" The directory to install plugins.
+let g:PLUGIN_HOME=expand(stdpath('data') . '/plugged')
"}}
"{{ Autocompletion related plugins