[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] Blok ind/udkommentering?



* Kim Schulz <sslug@sslug> [Mar 12. 2004 20:39]:
> > Er det ikke muligt at blok ud ind/kommenteret noget i vi(m)?
> > 
> > Specielt perl, hvor man skal have # foran alle linierne. 
> 
> stå på øverste linje i blokken først på linjen. 
> tryk esc ctrl-v
> kør ned indtil der er markeret foran alle de linjer som skal markeres. 
> tryk ctrl-i skriv # tryk esc.
> 
> så er blokken markeret med # foran. 
> 
> Det er desværre eneste måde jeg kender. 

Man kan også blokke ind med 'V' og så lave følgende der betyder "erstat
begyndelsen af linjen (^) med (# )".

:'<,'>s/^/# /

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.


 
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] *