On Mi, 18 Apr 2012, ping wrote:
> I'm using fold a lot and wondering if there is a way to yank ONLY
> the displayed texts?
> that is , say I have following folding:
>
> 30 hostname "WASHDC core"
> 31 +-- 34 lines: aaa new-model
> 65 +-- 2 lines: !
> 67 service password-encryption
> 68 baseline show-delta-counts
> 69 !
> 70 +-- 3 lines: controller sonet 12/0
> 73 !
> 74 +-- 3 lines: controller sonet 13/0
> 77 !
> 78 +-- 23 lines: controller sonet 4/0
> 101 +-- 31 lines: !
>
> normally when you yank a folded line, it actually yank the whole
> texts that line folded, not only the displayed title.
> but I want to also have the option to do the other way -- just yank
> the texts that is getting displayed.
>
> this is kind of another good usage of folding -- generate an
> overview that can be passed to other places.
I once posted a similar function here.
Look here:
http://groups.google.com/group/vim_use/msg/571f070987ee35ce
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:
Post a Comment