當我編輯的Vim(使用的MacVim)Python文件,我按o
插入新行,Vim會引發以下錯誤:錯誤編輯蟒蛇的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運行雪豹與基於vim 7.2的自定義編譯的macvim :) – 2011-01-30 02:56:14