Use glob() in list mode, duh

This commit is contained in:
Emmanuel BENOîT 2015-03-13 11:20:55 +01:00
parent 3ac7944add
commit 8f3f5d376f

4
vimrc
View file

@ -27,7 +27,7 @@ endif
" Execute configuration in cfg-pre/, which should in turn execute the main " Execute configuration in cfg-pre/, which should in turn execute the main
" configuration in cfg/ " configuration in cfg/
let s:cfg_bits_path = g:vim_home . '/cfg-pre' let s:cfg_bits_path = g:vim_home . '/cfg-pre'
let s:cfg_files = glob( s:cfg_bits_path . '/??-?*.vim' ) let s:cfg_files = glob( s:cfg_bits_path . '/??-?*.vim' , 0 , 1 )
for s:cfg_file in sort( split( s:cfg_files , "\n" ) ) for s:cfg_file in sort( s:cfg_files )
execute 'source ' . s:cfg_file execute 'source ' . s:cfg_file
endfor endfor