Hi Tim, Tim Chase schrieb: > > Shooting from the hip (meaning the below is untested), I'd do > something like
For shooting from the hip you did hit the target... ;-) > > :nnoremap <f4> yy<c-w>nP:%!sh<cr> > :vnoremap <f4> y<c-w>nP:%!sh<cr> > I was so fixed on first executing and then opening a window that I didn't realized that the whole thing vice versa does it. Thank you for opening my mind. > The only side-effect is that your scratch-register (@") and your > yank-register (@0) get replaced with your command to be executed. It's a kind of excercise to enable the whole thing with a rarly used register. :-) Best regards Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
