MatchTagAlways icon indicating copy to clipboard operation
MatchTagAlways copied to clipboard

mta hangs vim when opening remote files on windows

Open ri-aje opened this issue 10 years ago • 0 comments

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.

ri-aje avatar Jan 21 '16 00:01 ri-aje