[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] udkommentere en blok



On Wed, 11 Dec 2002 08:33:26 +0100,
Kim Schulz <sslug@sslug> wrote:

>> > hejsa
>> > hvordan udkommenterer man let en hel blok af f.eks. c-kode (altså
>> > enten indsætning af // */ /* eller lignende? 
>> > 
>> > det er til vim. 
>> 
>> Linje 1-5 kommenteret ud med C++ stil kommentarer:
>> :1,5s/^/\/\//
>> 
> 
> hvad med et scoope i noget kode ? f.eks. alle linjer mellem { og den
> tilhørende } (som de funktioner der er i emacs). 

Det kan næsten gøres således 

Placer cursoren på { eller } (brug evt. [{ eller ]} ).
v (visual mode)
: 
s/^/\/\//
<vogn-retur>



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:44 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] *