Skip to content

Fix weird path problem with cygwin vim #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix weird path problem with cygwin vim #1

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 5, 2014

On cygwin, the processing of root path is somewhat different from unix systems:
/ and // are considered different things, and vim's filereadable() will return true for paths beginning with //.
Thus the approach of simplify(currentpath . '/..') won't work since it will produce a // path when current path is /.

This pull request add a cygwin-specific fix for this problem, only with a special has("win32unix") flag to make it only affect cygwin vim (and maybe also vim under msys, which I doubt anyone really uses it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants