基本上,当我尝试运行时vi
,出现以下错误(打开后,有很多错误):
Error detected while processing function UltiSnips#bootstrap#Bootstrap:
line 35:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/__init__.py", line 8, in <module>
from UltiSnips.snippet_manager import SnippetManager
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/snippet_manager.py", line 16, in <module>
from UltiSnips.snippet.definition import UltiSnipsSnippetDefinition
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/snippet/definition/__init__.py", line 3, in <module>
from UltiSnips.snippet.definition.ultisnips import UltiSnipsSnippetDefinition
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/snippet/definition/ultisnips.py", line 6, in <module>
from UltiSnips.snippet.definition._base import SnippetDefinition
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/snippet/definition/_base.py", line 12, in <module>
from UltiSnips.text_objects import SnippetInstance
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/text_objects/__init__.py", line 9, in <module>
from UltiSnips.text_objects._shell_code import ShellCode
File "/Users/myname/.vim/bundle/ultisnips/pythonx/UltiSnips/text_objects/_shell_code.py", line 10, in <module>
import tempfile
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 32, in <module>
import io as _io
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module>
import _io
ImportError: dlopen(/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyErr_ReplaceException
Referenced from: /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
基本上,我想重新安装vi
。但是,按照说明进行操作后:
http://www.yolinux.com/TUTORIALS/LinuxTutorialAdvanced_vi.html http://www.vim.org/git.php
我仍然有这个错误。我应该怎么办?
在我的记忆中,我曾经不小心删除过/usr/local/bin
...不知道是否会影响...
答案1
问题不在于安装,而在于你的插件或Python安装。
删除 /Users/myname/.vim/bundle,也许整个 /Users/myname/.vim/,然后重试。
顺便说一句,我猜你并不是真正在谈论 vi,而是 vim。