search

Home  >  Q&A  >  body text

linux - 配置vim高亮语法是有问题?

我在~/.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

ringa_leeringa_lee2773 days ago721

reply all(1)I'll reply

  • 黄舟

    黄舟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

    reply
    0
  • Cancelreply