diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-30 15:51:29 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-09-30 15:51:29 +0800 |
| commit | 63dfd0031c37dbb88d0a11e449e7c0a02abef4e9 (patch) | |
| tree | 92e4aa4a79df66d32a825637e27245c43f6af69d | |
| parent | 8f4d4d9b499563a8a2dc8be3a49d9f629c8837a7 (diff) | |
change custom variable location
| -rw-r--r-- | init.vim | 7 | ||||
| -rw-r--r-- | variables.vim | 7 |
2 files changed, 8 insertions, 6 deletions
@@ -50,12 +50,6 @@ "} "{ Main configurations -let g:is_win = has('win32') || has('win64') -let g:is_linux = has('unix') && !has('macunix') -let g:is_mac = has('macunix') - -let g:nvim_config_root = expand('<sfile>:p:h') - let g:config_file_list = ['variables.vim', \ 'options.vim', \ 'autocommands.vim', @@ -64,6 +58,7 @@ let g:config_file_list = ['variables.vim', \ 'ui.vim' \ ] +let g:nvim_config_root = expand('<sfile>:p:h') for s:fname in g:config_file_list execute printf('source %s/%s', g:nvim_config_root, s:fname) endfor diff --git a/variables.vim b/variables.vim index c6af956..a6254c7 100644 --- a/variables.vim +++ b/variables.vim @@ -1,4 +1,11 @@ "{ Global Variable + +"{{ Custom variables +let g:is_win = has('win32') || has('win64') +let g:is_linux = has('unix') && !has('macunix') +let g:is_mac = has('macunix') +"}} + "{{ Builtin variables " Disable Python2 support let g:loaded_python_provider=0 |
