Write out error message

11 views
Skip to first unread message

Phil Dobbin

unread,
May 24, 2013, 6:59:21 AM5/24/13
to vim...@googlegroups.com
Hi, all.

Is there a way to write out to file or buffer the error message that
comes up bottom left above the command line when one of the installed
plugins throws an error?

Any help appreciated.

Cheers,

Phil...

--
currently (ab)using
CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy, Spherical &
That Damn Cat, Lubuntu 12.10, OS X Snow Leopard & Tiger, Ubuntu Precise,
Quantal & Raring
GnuGPG Key : http://phildobbin.org/publickey.asc

David Fishburn

unread,
May 24, 2013, 8:02:56 AM5/24/13
to vim_use
On Fri, May 24, 2013 at 6:59 AM, Phil Dobbin <phild...@gmail.com> wrote:
Hi, all.

Is there a way to write out to file or buffer the error message that
comes up bottom left above the command line when one of the installed
plugins throws an error?


You can always see the errors later with:
:messages

And due to that, you could do something like this:

:redir @a
:messages
:redir END

That will put that content (all messages, not just errors) into your "a register.
So you can paste it into a buffer with "ap.

:redir offers other features, you can redirect to a file as well.
:redir > myfile.txt

:h :redir

You can also view the messages highlight them with your mouse and hit CTRL-Y to yank them into the system clipboard.

HTH,
David

 

Phil Dobbin

unread,
May 24, 2013, 1:22:12 PM5/24/13
to vim...@googlegroups.com
Excellent, thanks David.
Reply all
Reply to author
Forward
0 new messages