Friday, May 24, 2013

Re: Write out error message


On Fri, May 24, 2013 at 6:59 AM, Phil Dobbin <phildobbin@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

 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment