-
Notifications
You must be signed in to change notification settings - Fork 32
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
Vim 8 is slow to start due to vim-isort #33
Comments
I debuged the python_vimisort.vim file, when it tries to import isort on line 37:
I commented this line, now the plugin does not verify if the isort exists, but starts fast. As soon as Iave some time, I will try to workarround this problem with some more elegant way and do a pull request. |
Same here |
wrap the import in a def load_isort():
try:
# Try isort >= 5
from isort import code
from isort.settings import Config
return code, Config, None
except ImportError:
try:
# Try isort < 5
from isort import SortImports
return None, None, SortImports
except ImportError:
return None, None, None Then def isort(text_range):
code, Config, SortImports = load_isort()
if code is None and Config is None and SortImports is None:
... |
Good idea! I'll implement this (unless you want to send a PR) |
same here |
What's the status on this? |
For some reason vim isort is taking 1.5 sec to start, i'm using Pathogen, some idea about what to check?
This is my vimrc file:
The text was updated successfully, but these errors were encountered: