On Thu, Sep 17, 2009 at 10:41 AM, Tim Chase wrote: > >> Is there a way to take a line from the editing buffer and then execute >> it or source it. >> For example, I was going through a textfile where several linux >> commands were written. Now since I am lazy :), I don't like to go to >> insert mode, then copy that line, then enter exec mode, and then paste >> and then press enter. Oh Man its too tedious!! > > Heh, lazy after my own heart. > > If they are Ex commands, and have the leading colon, you can just > yank them and then execute them as a macro: > ... > > If they don't have leading colons, then it may be fastest to just > use blockwise visual-mode to add 'em.
I think it would be nicer to use the ex-mode @ command, for instance: yy:@"<CR> ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
