[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] Macro?



sslug@sslug wrote:

> 
> Man kan godt knytte en kommandorække kommandorække
> til en tastekombination evt. en enkelt tast.
> Er det noget man gør tit vil man bruge "map"
> f.eks hvis du fyrer følgende af i vim (eller putter den i .vimrc)
> :map CTRL-V_CTRL-T $a.CTRL-V_ESCAPE (_ skal fjernes men
> er indsat for læsbarhedens skyld)
> vil du mappe CTRL-T til at gå til enden af linien og indsætte
> et punktum. CTRL-V er et specielt tegn som skal tastes
> før at man taster sådan noget som CTRL, ESCAPE, RETURN
> etc. i disse ting.

Det er jo løsningen på mit spørgsmål om specialtegn i vi :-)

 
> Med hensyn til at putte en tab som første tegn i
> den linie jeg stå i og de næste 373 linier vil jeg slet ikke bruge
> funktioner men blot kommandoen
> :.,+373 s/^/\t/

Det var besværligt. Du kan gøre det ved at taste 373 >> i kommand mode og 
373 << nå du skal havde dem rykket tilbage igen.

Mvh Finn


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