我在~/.vimrc中添加了syntax on之后却发现报错,然后并不会显示语法高亮
.vimrc中的代码是这样写的
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
syntax on
set number
set autoindent
set cindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set cino=g0,:0
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你截图里的报错信息是.vimrc文件第5行有错误,你第5行为
syntax onset number,应改为两句