Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion vim: how to yank only displayed texts in folding
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ping  
View profile  
 More options Apr 18 2012, 1:26 pm
From: ping <songpingem...@gmail.com>
Date: Wed, 18 Apr 2012 13:26:35 -0400
Local: Wed, Apr 18 2012 1:26 pm
Subject: vim: how to yank only displayed texts in folding
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.

regards
ping


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.