On Saturday 03 January 2009, Tim Johnson wrote: > select text in visual mode > y " yank to " register > > :let lines = @" " read register into variable > :call writefile(lines,'targetfile') > > " this command fails since writefile() needs the first arg as list > " so either another function is needed or a way to coerce `lines' to > " a list OK! :call writefile(split(lines,'\n'),'targetfile') ~tj~ """The python sleeps tonight"""
--~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
