Answers:
您需要先放置另一个|,else否则vim会认为您的命令set listchars+=space:· else代替了两个单独的命令。这就是为什么您收到错误消息的原因:else该命令的未知选项set。
正确的语法如下:
if has("patch-7.4.710") | set listchars+=space:· | else | set listchars+=trail:· | endif
if has("patch-7.4.710"),指令2 set listchars+=space:·,指令3 else,指令4 set listchars+=trail:·和最后一条指令endif。由于|用于单独说明它是唯一合乎逻辑放人之前else,一次次:)
;分隔指令。在C else中不是指令,否则;后面会有一个:)
|之前或之后的位置else?现在,我现在都是:-D。非常感谢 :) !