Tuesday, September 1, 2009

Re: goto line depending on exit code of filter

On Tue, 01 Sep 2009, Tony Mechelynck wrote:
> external program generate the required number as a return code: IIRC,
> return codes are limited to one byte, and those above 127 may have a
> special meaning (generated by the OS maybe).

Tony, you are correct. I don't why it seemed to work last time I
tested.

How can I store content of the current buffer and restore it in case
of error? like the following pseudo code

let tmp=%
%!filter
if v:xhell_error | set %=tmp | endif

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment