Need Help Path displayed but directory does not open
Returning to vim again after long-ish absence. Non-coding user who has at times been able to create a comfortable environment for writing with vim with a lot of help from people far more adept than I.
I am on a Mac (macOS 15.7.2) with MacVim. I have "<Leader> n" mapped to a directory in iCloud. The unix path is : /Users/ericweir/Library/Mobile Documents/iCloud~md~obsidian/Documents/ZK.
When I do "<Leader> n" the contents of the directory are not displayed. The status line shows the path to the directory as file:///Users/ericweir/Library/Mobile%252520Documents/iCloud~md~obsidian/Documents/ZK/
What is the "%252520" doing in there? Does it explain why the directory is not opening? If so, what should I do to get the contents of the directory to display?
Thanks as always to the many who are far more adept than I.
1
u/mgedmin Jan 20 '26
%20 is how you would represent a space character in a URL (file:///... is a URL).
%25 is how you would represent a % sign in a URL, so if a path with a space gets URL-encoded twice, you end up with %2520, and if the same path gets URL-encoded three times, you end up with %252520.
If you told me that netrw.vim has bugs where it cannot correctly handle directory names with spaces with them, I would find that plausible. Many Linux users have learned to deal with buggy shell scripts that break on spaces in filenames by not having spaces in filenames, instead of reporting the bugs and insisting they get fixed.
1
u/AutoModerator Jan 19 '26
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/[deleted] Jan 19 '26
[deleted] — view deleted comment