Skip to content
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

mta hangs vim when opening remote files on windows #27

Open
ri-aje opened this issue Jan 21, 2016 · 0 comments
Open

mta hangs vim when opening remote files on windows #27

ri-aje opened this issue Jan 21, 2016 · 0 comments

Comments

@ri-aje
Copy link

ri-aje commented Jan 21, 2016

with mta, vim hangs on opening remote files. after playing with the script, I found that in the autoload script, python module search path is first appended with mta/python folder.
exe 'python sys.path = sys.path + ["' . s:script_folder_path . '/../python"]'

in my case, however, sys.path contains some invalid path originally constructed from the remote path (not sure what did this). and the next 'python import' command becomes very slow. my guess is that python has to go through all the paths in front before looking at the one just added to locate mta_vim and somehow the remote looking invalid path blocks everything.

anyway, I worked around this problem by inserting mta/python in the front to make sure mta_vim is found before python touches the invalid path in sys.path.

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

No branches or pull requests

1 participant