Problem: Windows 11 is capable of handling pathnames > 260 characters, but vim and gvim will not open them.
In vim, attempting to open a file whose full pathname is longer than 260 characters results in opening a new empty file. In gvim, the program can't open the file, and instead opens a directory -- whichever directory portion of the pathname maximally fits within the first 260 characters (if the pathname were c:\<250 more characters>\folder\very_long_filename.txt, gvim would open the ...\folder directory). This is true whether opening the file from CMD shell, PowerShell, Visual Studio, MS Word, MS Edge, or via Windows Explorer (Open With) any of these applications.
A registry setting in Windows 11 enables Windows Explorer and the OS to handle such long filenames fine, but per Microsoft documentation, "the application must also enable support for this feature".
Requested solution
Enable full long pathnames to be supported, so that users can view and edit such files in vim/gvim. It's possible; Firefox and VSCode can do so.
Alternatives I've considered
There are 4 options I can imagine:
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
duplicate of #9715
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #18850 as duplicate.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()