当前位置: 技术问答>linux和unix
vim 编程环境配置错误
来源: 互联网 发布时间:2016-09-20
本文导语: 先看看我的vimrc文件配置,从网上看的 set nocompatible set nummber filetype on set history=1000 set background=dark syntax on set autoindent set smartindent set tabstop=4 set shiftwidth=4 set showmatch set guioptions-=T set vb t_vb= se...
先看看我的vimrc文件配置,从网上看的
set nocompatible
set nummber
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set mouse=a
set cindent
set incsearch
if has("vms")
set nobackup
else
set backup
endif
运行后出现如下错误,该怎么改
zhangyang@ubuntu:~$ vim test.c
Error detected while processing /usr/share/vim/vimrc:
line 3:
E518: Unknown option: nummber
Press ENTER or type command to continue
set nocompatible
set nummber
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set mouse=a
set cindent
set incsearch
if has("vms")
set nobackup
else
set backup
endif
运行后出现如下错误,该怎么改
zhangyang@ubuntu:~$ vim test.c
Error detected while processing /usr/share/vim/vimrc:
line 3:
E518: Unknown option: nummber
Press ENTER or type command to continue
|
是number
不是nummber
不是nummber
|
|
哈哈