我正在尝试安装着色器插件的一个分支。它有最低的要求,awk是其中之一。但我似乎运行在一堆错误。
line 31:
E492: Not an editor command: const s:RXFLT = '%(\d*\.)?\d+'
line 34:
E492: Not an editor command: const s:RXPCT = '%(\d*\.)?\d+\%'
line 37:
E492: Not an editor command: const s:RXPCTORFLT = '%(\d*\.)?\d+\%?'
line 40:
E492: Not an editor command: const s:CMMA = '\s*,\s*'
line 554:
E492: Not an editor command: const s:CLRZR_AWK_SCRIPT_PATH = expand('<sfile>:p:h') . '/clrzr.awk'
Error detected while processing function clrzr#Enable:
line 22:
E121: Undefined variable: s:CLRZR_AWK_SCRIPT_PATH
E116: Invalid arguments for function job_start( ['awk', '-f', s:CLRZR_AWK_SCRIPT_PATH], job_opts)
line 27:
E121: Undefined variable: s:awk_job
E116: Invalid arguments for function job_getchannel(s:awk_job)
line 28:
E121: Undefined variable: s:awk_chan
E116: Invalid arguments for function string(s:awk_chan) == 'channel fail'
line 86:
E216: No such group or event: SafeState * call s:SafeStateUpdate()
可在此处访问该插件:https://github.com/BourgeoisBear/clrzr
此外,我还附加了出错的原始文件:https://raw.githubusercontent.com/BourgeoisBear/clrzr/master/autoload/clrzr.vim
1条答案
按热度按时间trnvg8h31#
:help :const
是在补丁8.1.1539中引入的。如果你的Vim不能识别它,那么这意味着它对于该插件来说太旧了。您可以选择...
我会选择第三个方案。
此外,您可能需要要求该分支的作者清楚地说明插件的要求。