12 lines
259 B
VimL
12 lines
259 B
VimL
|
|
||
|
function! PhpStackTrace()
|
||
|
let errorformat_bak=&errorformat
|
||
|
try
|
||
|
let &errorformat="%f\ |\ %l\ |\ %m"
|
||
|
cexpr join(readfile('/tmp/stack.php'), "\n")
|
||
|
copen
|
||
|
finally
|
||
|
let &errorformat=errorformat_bak
|
||
|
endtry
|
||
|
endfunction
|