
我使用以下命令打開 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
答案1
用於註解的引號字元是"
(ASCII 值 0x22 - 引號),但您使用的字元看起來相似,但並不相同:”
(Unicode 值 0x201d - 右雙引號)
替換一下角色就可以了。