I'm trying to figure out what format to use to get filereadable to recognize a file with a space in the name.  This is in Ubuntu using version 7.4.1689.The following all return 0:filereadable('/home/user/file name')filereadable('/home/user/file\ name')filereadable(/home/user/file\ name)filereadable(\/home\/user\/file\ name)filereadable(fnameescape('/home/user/file name'))How can I get filereadable to recognize a space in the path on Linux systems?
How to get filereadable to recognize spaces in filenames/paths
vimscript
filereadable('/home/user/file name') is the correct syntax.If you want to use wildcards as well you should use glob:if glob('~/file name')!=#glob returns the full name if the file exists or  if it does not.