我在~/.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
黄舟2017-04-17 16:34:55
The error message in your screenshot is that there is an error in the 5th line of the .vimrc file. Your 5th line syntax onset number
should be changed to two sentences
syntax on
set number