简体   繁体   English

.vimrc文件中的错误消息

[英]error message in simple .vimrc file

When I put in my .vimrc file: 当我放入.vimrc文件时:

"set backspace =2; set nocompatible; syntax on;" “设置退格键= 2;设置不兼容;语法打开;”

It works fine and uses these settings when I open a new vim file however I get the error message: 当我打开一个新的vim文件时,它工作正常并使用以下设置,但出现错误消息:

Error detected while processing /mount/autofs/home_stude1/a/afarah/.vimrc: line 1: E474: Invalid argument: backspace =2; 处理/mount/autofs/home_stude1/a/afarah/.vimrc时检测到错误:第1行:E474:无效参数:backspace = 2; line 2: E488: Trailing characters: nocompatible; 第2行:E488:结尾字符:不兼容;

probably trivial, but not sure how to fix it. 可能微不足道,但不确定如何解决。

Use the following instead. 请改用以下内容。

set backspace=2 nocompatible
syntax on

Vim's script syntax does not use semicolons AFAIK. Vim的脚本语法不使用分号AFAIK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM