【发布时间】:2014-03-18 01:28:15
【问题描述】:
当我在 Vim(使用 MacVim)中编辑一个 python 文件时,我按o 插入一个新行,Vim 抛出以下错误:
Error detected while processing function <SNR>20_CheckAlign..GetPythonIndent:
line 30:
E121: Undefined variable: dummy
Press ENTER or type command to continue
Error detected while processing function <SNR>20_CheckAlign..GetPythonIndent:
line 30:
E15: Invalid expression: line('.') < 7 ? dummy : synIDattr(synID(line('.'), col('.')
, 1), 'name') =~ '\(Comment\|String\)$'
我该如何解决这个问题?
【问题讨论】:
-
您需要提供更多信息,例如 osx 版本、macvim 版本、是否会在空文件中发生这种情况等。我的 mbp 使用自定义编译运行雪豹没有问题macvim 基于 vim 7.2 :)