Tuesday, May 22, 2012

Re: vim: how to yank only displayed texts in folding

Hi ping!

On Di, 22 Mai 2012, ping wrote:

> can you let me know how to use this function in practice?
> I tried visual mark then :call func..
> it doesn't work.

Please be exact. What did you do? What happened instead? Did you get an
error message?

>
> http://groups.google.com/group/vim_use/msg/dd1baac3622107c0
>
Take the function CopyNonFoldedI() from here:
http://groups.google.com/group/vim_use/msg/571f070987ee35ce
and copy it into a file which you save below ~/.vim/plugin/CopyFolds.vim

Restart Vim and now you can simply call :call CopyNonFolded() and it
will create a new split buffer which contains only the fold data.

regards,
Christian

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

No comments: