Vim E488尾随字符,但我在文件中看不到任何尾随字符


-1

我用以下命令打开vimrc文件vim ~/.bash_profile。这是错误消息以及vim文件内容。当我用VIM打开任何文件时,我实际上得到了这个错误。

Error detected while processing /Users/yako/.vimrc:
line    3:
E488: Trailing characters
Press ENTER or type command to continue

.vimrc文件

"Pathogen
execute pathogen#infect()
call pathogen#helptags() ” generate helptags for everything in ‘runtimepath’
syntax on
filetype plugin indent on

Answers:


0

用于注释的引号字符是"(ASCII值0x22 - 引号),但是您使用的字符看起来相似但不相同:( Unicode值0x201d - 右双引号)

替换角色,它将工作。


你是对的。我用实际文件更新了这个问题
Daniel Jacobson

@DanielJacobson - 答案修订
Heptite 2016年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.