Sunday, November 29, 2009

Re: How to get the screen of the previous command that was executed?

Hi Joan!

On Mo, 16 Nov 2009, Joan Miquel Torres Rigo wrote:

> The best solution which I found is to select the query which I want to test
> (writting it if I am retriving data instead of testing) and then normally
> execute ':!psql <database>'.
>
> This replaces selected text by the result of the command but, if you want,
> you can restore the selection by undoing changes with 'u'. I did'nt found
> any way to avoid deletion of selected text yet.

Well you could write a wrapper (e.g. a shell script), that first outputs
the input, and afterwards processes the input with sql. That's no
generic solution and a little bit awkward.

regards,
Christian
--
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].

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

No comments:

Post a Comment