Ignore missing ssh include files

This commit is contained in:
Tim Pope
2024-05-15 12:46:12 -04:00
parent 19ca61c78c
commit 110e7ca00c

View File

@@ -1259,7 +1259,10 @@ function! s:SshParseConfig(into, root, file) abort
let glob = a:root . glob
endif
for included in reverse(split(glob(glob), "\n"))
call extend(lines, readfile(included), 'keep')
try
call extend(lines, readfile(included), 'keep')
catch
endtry
endfor
endfor
elseif len(key) && len(host)