Vim 错误:E474:无效参数:listchars=tab:»·,trail:· [英] Vim Error: E474: Invalid argument: listchars=tab:»·,trail:·

查看:32
本文介绍了Vim 错误:E474:无效参数:listchars=tab:»·,trail:·的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

总结:

由于在我的 .vimrc 文件中包含以下行,我收到以下错误

I am receiving the following error for having the below line in my .vimrc file

错误:

E474: Invalid argument: listchars=tab:»·,trail:·

.vimrc:

set list listchars=tab:»·,trail:·

我对此进行了研究,这似乎与正确设置 UTF-8 编码有关.

I have researched this and it appears to have something to do with UTF-8 encoding being properly set.

系统设置:

lsb_release:

lsb_release:

Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

语言环境:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US

推荐答案

解决方案:

将以下几行放在错误提到的 .vimrc 的顶部:

Place the following lines at the top of the .vimrc the error mentions:

.vimrc:

scriptencoding utf-8
set encoding=utf-8

这篇关于Vim 错误:E474:无效参数:listchars=tab:»·,trail:·的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆