aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-12-08 23:18:30 +0800
committerjdhao <jdhao@hotmail.com>2019-12-08 23:18:30 +0800
commit5d1b59073b90949c00ceb0baca41f78555740f34 (patch)
tree9f2a6fc9df49bc95b7345d4100a9091dce990eaa
parent638df7f50941243f7871414358947c72792abae7 (diff)
Turn global variable to local
A variable without scope is global by default, see http://rbtnn.hateblo.jp/entry/2014/12/28/010913
-rw-r--r--init.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.vim b/init.vim
index 2d83e74..2e90145 100644
--- a/init.vim
+++ b/init.vim
@@ -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
"}