我尝试进行搜索时出现Silver Searcher错误

时间:2018-10-22 17:35:31

标签: vim command-line

我尝试执行搜索时,Silver Searcher(v2.2.0)引发以下错误:

Error detected while processing function TheSilverSearcher:
line    1:
E319: Sorry, the command is not available in this version: 
python3 << endPython
line    3:
E492: Not an editor command: import vim
line    5:
E492: Not an editor command: def python_input(message = 
'input'):
line    6:
E682: Invalid search pattern or delimiter
line    7:
E682: Invalid search pattern or delimiter
line    8:
E682: Invalid search pattern or delimiter
line    9:
E121: Undefined variable: vim
E15: Invalid expression: vim.eval('user_input')

我尝试重新安装和更新the_silver_searcher的版本,但是仍然出现相同的错误。我检查了同事的设置,它们具有相同的设置。如何使搜索有效?

1 个答案:

答案 0 :(得分:0)

解决方案原来是brew uninstall vim,然后是brew install vim --with-lua --with-python3