Gerald Koenig wrote:
I think there must be a way to change the destination path for a
write on :w and put it in the _vimrc as a default, but I can't find
it.
Many TIAs,
Jerry
":w" with no filename will always write the file under the same name and
in the same directory as it already was.
To make the editfile's directory active (and it maybe a different one in
each window, if you use split-window mode):
au Buf Read,BufNew,BufNewFile,BufWinEnter * silent lcd <afile>:h
To make your home directory current when starting Vim:
cd ~
To always start on the filesystem's root directory:
if has ("win32") || has("win16") || has("dos16") || has ("dos32")
cd C:\
else
cd /
endif
Best regards,
Tony.