This bit me while getting my TOhtml tests working on Windows with a Visual 
Studio build environment. I'm not sure if it's a bug or not, but I can't 
find any description of it in the help and it isn't acting as I'd expect. 
Vim seems to change path to the directory containing a file, if it is 
passed the absolute path WITH DRIVE LETTER to a file. I expect Vim to keep 
its working directory the same as the directory it was launched from, 
unless 'autochdir' is set or the directory is changed manually or with an 
autocmd. I expect that using "-u NONE" should avoid any automatic methods.

C:\Users\me\path\to\vim-src> .\vim.exe -u NONE rel\path\to\file.txt
:pwd
C:\Users\me\path\to\vim-src

C:\Users\me\path\to\vim-src> .\vim.exe -u NONE 
C:\Users\me\path\to\vim-src\rel\path\to\file.txt
:pwd
C:\Users\me\path\to\vim-src\path\to

Interestingly:
C:\Users\me\path\to\vim-src> .\vim.exe -u NONE 
\Users\me\path\to\vim-src\rel\path\to\file.txt
:pwd
C:\Users\me\path\to\vim-src

Right now, I can't easily compile any Windows Vim version prior to the 
introduction of Visual Studio 2022 support in v9.0.0528. The same behavior 
occurs in that version.

I downloaded zip file releases from 
https://github.com/vim/vim-win32-installer/ for the following older 
versions which also exhibit the same behavior, so it has been around for a 
long time:

 - 8.0.0003
 - 7.4.1185 (the oldest tag available which has prebuilt binaries)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/7930f658-af38-4fa4-93fa-30a0146d7ef1n%40googlegroups.com.

Raspunde prin e-mail lui