php_console.vim : Use php console application for debug messages (for windows)
| script karma
Downloaded by 1378
Comments, bugs, improvements
script versions (upload new version)
|This is for windows.
For unix see http://vim.sourceforge.net/scripts/script.php?script_id=326.
(But you can adapt this also for unix. Just the path-reference to the php.exe is different.)
Go into your php-file and :call ParsePhpFile().
Write a mapping to automat this. E.g.
map <F5> :call ParsePhpFile()<cr>
imap <F5> <esc>:call ParsePhpFile()<cr>
Now you can debug your php-file without leaving vim.
You can jump to the error lines by clicking on the compiler output in the window that opens below.
After finishing removing the errors you can open your php-file in the browser.
* You do not rely on apache. This means:
* You can open the php-files everywhere in the filesystem (also outside of htdocs).
* There is no difference between the console and the browser output. (When there is no error output you see the normal html output.)
* Roundtrip error checking is possible without leaving vim.
|Put it in the ftplugin directory.
To do this you can create a "php" directory there and drop it into it.
But vim should also recognize it in this form "php_XXXXXX.vim".
Go into the environment variables of windows and set a path to the php.exe.
If you do not see a complete compiler output check the errorformat.
Click on the package to download.
ip used for rating: 188.8.131.52