File pack/other/start/ifdef/after/syntax/ifdef.vim changed (mode: 100644) (index 782b74d..0dc1837) |
... |
... |
endfun |
306 |
306 |
fun! s:ReadFile( dir, filename) |
fun! s:ReadFile( dir, filename) |
307 |
307 |
let realdir= s:CheckDirForFile( a:dir, a:filename ) |
let realdir= s:CheckDirForFile( a:dir, a:filename ) |
308 |
308 |
if realdir=='' | return '' | endif |
if realdir=='' | return '' | endif |
309 |
|
" if has('dos16') || has('gui_win32s') || has('win16') || ha |
|
310 |
|
if !has('unix') && !&shellslash && &shell !~ 'sh[a-z.]*$' |
|
311 |
|
return system('type "'.fnamemodify(realdir,':gs?/?\\?.').a:filename.'"') |
|
312 |
|
else |
|
313 |
|
return system( 'cat "'.escape(realdir.a:filename,'\$*').'"' ) |
|
314 |
|
endif |
|
|
309 |
|
return join(readfile(realdir.a:filename), '\n') |
315 |
310 |
endfun |
endfun |
316 |
311 |
|
|
317 |
312 |
" Define/undefine a ';' or ',' separated list |
" Define/undefine a ';' or ',' separated list |