Hi Tim! On Do, 17 Sep 2009, Tim Chase wrote:
> > > no tim, i think you missed where the OP said they are linux > > commands -- i think he is looking for a way to get them to > > the command line with a '!' in front of them -- without > > having to yank and paste > > doh...one little word makes a *big* difference. :) > > You can pipe shell commands through "sh", so you can highlight > the range of commands and then just use > > :'<,'>!sh This deletes the command, which may or may not be desirable. > > to execute them all. What's the problem with yanking and pasting? You can do something like this: :nmap ,, ^y$:r!<C-R>"<C-M> and then use ,, to yank the current line and let it get executed via a :r! ex command. regards, Christian -- :wq! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
