문제

I am attempting to debug a misbehaving Vim plug-in that is apparently writing stuff to stdout and stderr, but since gVim seems to launch in a separate process when run from the command line, I have to way to inspect it. Is there any solution?

도움이 되었습니까?

해결책

As it's hard to write to stdout / stderr from Vimscript, I doubt that this is what the plugin does.

In any way, hardly any plugin is GVIM-only, so you can just launch terminal Vim to capture the output.

debugging tips

To troubleshoot the misbehaving plugin, I recommend to capture a verbose log with vim -V20vimlog.

If that doesn't suffice, you can step through the plugin, e.g. with :breakadd file plugin/pluginname.vim. Finally, don't hesitate to contact the plugin's author; he's best suited to help you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top