On Monday, November 25, 2013 10:35:54 AM UTC-6, BPJ wrote: > 2013-11-25 16:49, Ben Fritz skrev: > >> > >> * How to call an external script from inside a function > >> without > > > > The system() function will return (as a string) the output of > > an external command without modifying any text in buffers. > > > > After system() runs the error code returned is in > > v:shell_error. > > No way to get stderr? >
You should already be getting stderr output. This is the function of the 'shellredir' option. By default this option should be set to capture both stdout and stderr. See: :help 'shellredir' :help system() -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.