
次のコマンドで 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 - 右二重引用符)を使用しています。
文字を置き換えると機能します。