Move the vim import to top.

This commit is contained in:
Dave Halter
2016-07-21 23:26:04 +02:00
parent 6b7dfe1c1a
commit d9f92d5b24

View File

@@ -15,6 +15,7 @@ try:
except ImportError: except ImportError:
from itertools import izip_longest as zip_longest # Python 2 from itertools import izip_longest as zip_longest # Python 2
import vim
is_py3 = sys.version_info[0] >= 3 is_py3 = sys.version_info[0] >= 3
if is_py3: if is_py3:
@@ -90,7 +91,6 @@ def echo_highlight(msg):
msg.replace('"', '\\"'))) msg.replace('"', '\\"')))
import vim
try: try:
import jedi import jedi
except ImportError as e: except ImportError as e: