1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Turn global variable to local

A variable without scope is global by default, see http://rbtnn.hateblo.jp/entry/2014/12/28/010913
This commit is contained in:
jdhao 2019-12-08 23:18:30 +08:00
parent 638df7f509
commit 5d1b59073b

View File

@ -72,8 +72,8 @@ let g:config_file_list = ['variables.vim',
\ 'ui.vim'
\ ]
for f in g:config_file_list
execute 'source ' . g:nvim_config_root . '/' . f
for s:fname in g:config_file_list
execute 'source ' . g:nvim_config_root . '/' . s:fname
endfor
"}