vim-symfony/plugin/stacktrace.vim
2011-11-15 18:05:06 +01:00

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