On Dec 23, 3:43 pm, niva <[email protected]> wrote: > Hi, > > I have a cpp with folded content. > > I would like to copy paste what I am seeing when all is folded. > > So the content in each fold should not be copied. > > How can I do that ? > thank you
What is your eventual goal? When I want to do something like that (for copy/paste into an email for example) I normally use :TOhtml and copy/ paste from the resulting html file using my web browser. If you had something else in mind, you may be able to hack something together using :folddoopen if you don't want the folded text to appear at all. You could use a :g command along with foldclosed() and foldtextresult() if you want to get all the lines exactly as displayed (including fold text). -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
