>> c) The stderr to stdout mapping is to help with development
>> under VIM. In VIM, I have mapped <F5> to saving the file,
>> marking the present location, jumping to the end of the
>> file, executing the file, collecting the stdout output and
>> appending the output to the end of the file and jumping to
>> the first line appended. The stderr to stdout mapping helps
>> capture error messages.
>
> Ah, care to share your macro. Isn't STDOUT normally going to
> the same place as STDERR or do you change that ?
The following is in my $VIM/vimfiles/ftplugin/perl.vim:
nmap <buffer> <F5> :w<esc>mwG:r!perl %:p<CR>`.
[Noticed just now that the <esc> after :w is a silly!]
The mark used is w (so `w will jump to the place where <F5> was hit).
The following at the top of the perl file helps capture errors:
BEGIN {(*STDERR = *STDOUT) || die;}
--Suresh
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs