我正在.vimrc中用这些配置我的vim colorscheme。
"Color scheme
syntax enable
set background = dark
colorscheme solarized
当我用Vim打开文件时,它报告:
Error detected while processing /home/user/.vimrc:
line 3:
E518: Unknown option: dark
Press ENTER or type command to continue
但这就像图片一样:
dark background
因为当我在.vimrc中评论它时:
"set background = dark
监视器是这样的:commented dark background。
我想知道为什么会这样以及如何解决。
最佳答案
:set
的有效语法:
set option=value
set option= value
:let
的有效语法:let variable=value
let variable= value
let variable =value
let variable = value
建议始终使用相同的语法以保持一致性。我用:
set option=value
let variable = value
关于vim - VIM E518:未知选项:黑暗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37112928/