From 29bb260417e5c15379f77cd8704a6c7a81259971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 8 Mar 2015 14:58:07 +0100 Subject: [PATCH] Local config: don't add suppress.* files to list --- cfg-pre/50-local-config.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cfg-pre/50-local-config.vim b/cfg-pre/50-local-config.vim index 7e201ce..256cc77 100644 --- a/cfg-pre/50-local-config.vim +++ b/cfg-pre/50-local-config.vim @@ -79,7 +79,10 @@ function! GetConfigFiles(base,pattern) endfor " Handle local files for lcf in glob( g:vim_local_path . "/" . a:base . "/" . a:pattern , 1 , 1 ) - let l:fd[ fnamemodify( l:lcf , ":t" ) ] = l:lcf + let name = fnamemodify( l:lcf , ":t" ) + if name !~ "^suppress\\." + let l:fd[ l:name ] = l:lcf + endif endfor return l:fd endfunction