a.vim
1) パスに ' ' が含むまれる場合に alternate に失敗する。
FindOrCreateBuffer 関数を呼ぶ所で path を escape してから渡す。
"call <SID>FindOrCreateBuffer(bestFile, a:splitWindow) call <SID>FindOrCreateBuffer(escape(bestFile, ' '), a:splitWindow)
2) ファイルのパスとカレントディレクトリが異なる時に alternate に失敗する。
BufferOrFileExists 関数を呼ぶところで fullpath を渡すようにする。
let sep = strpart(currentPath, 0, 1) " ここ追加 let onefile = currentPath . sep . onefile " ここ追加 let score = <SID>BufferOrFileExists(onefile)