Hello.  I work in a number of environments; and on a laptop which can have
access to nfs shares; I'd like to use my most up to date .vimrc.  The laptop
is running windows XP; and for a while I simply attempted to source
"\\<nfsVolume>\<Dir>\.vimrc" in a try/catch; and source my local copy if the
source failed.  This worked fine; but had a slightly longer delay than I'd
like; and I still had to manually update my local vimrc.  I sat down last
night to automate it; and am having a problem....

Can filereadable() and writefile() function on nfs directories?  Below I
have my current _vimrc, and I am never able to get filereadable() to read an
nfs share; or writefile() to write to an nfs share; both work as I expect to
local files.

Thanks,
    Chris

if filereadable("\\<nfsVolume>\<Dir>\.vimrc")
    source \\amana\cmueller\.vimrc
    "now move it to local.
    let f1 = readfile("\\<nfsVolume>\<Dir>\.vimrc","b")
    call writefile(fl, "C:/Program Files/vim/vimrc.local", "b")
else
    source C:/Program\ Files/vim/vimrc.local
endif

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to