I actually found a solution which involves less vim hacking and more command line magic: vim test.sql && echo :q | vim test.sql > test.sql.tmp 2> /dev/null &&head -n -1 test.sql.tmp | tail -n +2 && rm test.sql.tmp
And it does quite what I want: The second vim command pipes the output into a file, and afterwards it is displayed. Necessary for this to work: let xterm screen be restored, and vim remember the file position. Yipee! But it's very slow and there's a lot of overhead. Do you know a way to improve this? --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
