Wednesday, April 18, 2012

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

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.
Hello, ping:

You've "replied" twice on a thread (albeit one that you yourself
started) that has nothing to do with your subsequent questions. This
means that your questions have been placed in the thread on many (most?)
email readers, which in turn means that those who might have something
to say about your questions but aren't interested in the original ("how
to repeat the last :[range]g with the same range?") won't even see them.

I use seamonkey, myself; with it, I can right click on the "From:" field
and get an option to "compose mail to". Perhaps whatever you use has
something similar. The advantage is that it starts up a new thread, but
will still go to the group without your having to type it in.

Also: please bottom post on this group (its group-approved etiquette,
besides making sensible replies to replies to replies).

Regards,
Chip Campbell

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