From 8f3f5d376fe12172815820344d78ff9400510186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Fri, 13 Mar 2015 11:20:55 +0100 Subject: [PATCH] Use glob() in list mode, duh --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index fb60e31..4856a3d 100644 --- a/vimrc +++ b/vimrc @@ -27,7 +27,7 @@ endif " Execute configuration in cfg-pre/, which should in turn execute the main " configuration in cfg/ let s:cfg_bits_path = g:vim_home . '/cfg-pre' -let s:cfg_files = glob( s:cfg_bits_path . '/??-?*.vim' ) -for s:cfg_file in sort( split( s:cfg_files , "\n" ) ) +let s:cfg_files = glob( s:cfg_bits_path . '/??-?*.vim' , 0 , 1 ) +for s:cfg_file in sort( s:cfg_files ) execute 'source ' . s:cfg_file endfor