[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [VI] Slette linje med text pattern



Mads Martin Joergensen wrote:
* Mads Martin Joergensen <sslug@sslug> [Jun 21. 2005 23:42]:

feks.
:g/foo/t$ smider en kopi af alle linjer indeholdende foo nederst i filen.

UH! Den er jo lækker. Mange tak.


Hvordan så hvis jeg vil hælde dem ind i en buffer, eller smide dem over
i et andet vindue?

Du får linierne over i default buffer ved at markere med venstre museknap. Så flytter du focus til det andet vindue, og indsætter med midterknappen; det er en generel facilitet i X, som kan bruges overalt, også uden for VI. I VI kan du også yanke eller delete linierne, så ryger de også i bufferen. I stedet for default bufferen kan du i VI også bruge en navngiven buffer, se her:
http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node23.html


--
Med venlig hilsen

Jørgen Heesche
mailto:sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:45 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *