我是这么写的:
代码: 全选
" PHP output with firefox
function! PHP_FireFox()
let filepath=substitute(getcwd()."\\".bufname("%"), 'D:\\APMServ5.2.0\\www\\htdocs\\', "http://localhost/", "")
!D:/Program Files/Mozilla Firefox/firefox.exe filepath
endfunction
map <F7> :call PHP_FireFox()<CR>
!D:/Program Files/Mozilla Firefox/firefox.exe filepath
这个filepath变量无法解析,请教下,怎么写才能让他解析呢?