> 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>

Glad to hear.

>> 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. :-)

The easiest workaround, if this was a problem, would simply be to

1) preserve those two registers
2) do the stuff above
3) restore the two registers
4) (optionally) obliterate the variables used to hold them.

I'll leave that as an exercise for the reader :)

-tim





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

Reply via email to