[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] Hardlinks og vim



On Mon, 14 Jan 2002 10:06:37 +0100
"Christoffer H.-Frederiksen" <sslug@sslug> wrote:
> Jeg prøver at få vim (6.0) til at lave en ny fil når den gemmer, i
> stedet for at blot gemme indholdet af filen. Jeg vil altså have den
> til at lave en ny fil. Dette er relevant når man bruger hardlinks og
> ønsker en copy on write semantik. Lad mig illustrere.
> 
> sslug@sslug> cat hathat 
> bla bla bla
> sslug@sslug> ln hathat hathat2
> sslug@sslug> ll
> total 8
> -rw-r-----   2 hall     user           12 Jan 14 09:56 hathat
> -rw-r-----   2 hall     user           12 Jan 14 09:56 hathat2
> sslug@sslug> 
> sslug@sslug> vim hathat2
> 
>          En vim redigering der rydder skærmen kommer ind her
> 
> sslug@sslug> ll
> total 8
> -rw-r-----   2 hall     user           13 Jan 14 09:57 hathat
> -rw-r-----   2 hall     user           13 Jan 14 09:57 hathat2
> sslug@sslug> 
>           ^^^^^^^
> Det er så her man kan se at jeg ikke får en ny kopi af filen. Der står
> i dokumentationen at hvis man sætter backupcopy=no i sin .vimrc skulle
> den originale fil blive omdøbt til backupfilen og der ville blive
> lavet en ny fil, lige som jeg vil have det. Men det sker ikke! Jeg
> ville tro at hvis man sætter backup og sætter backupcopy=no skulle
> tingene virke, men .......
> 
> Er der nogen der har et godt bud på hvad jeg skal gøre for at få det
> til at virke?
> 

Jeg kan ikke helt forstå hvad fordelen skulle være ved dette? kan du
ikke prøve at beskrive det med et funktionelt eksempel? 

MVH
Kim Schulz

-- 
[              http://www.schulz.dk - En nørds bekendelser!            ]
[                           Seneste artikel:                           ]
[      Network neighbourhood - nu til linux vha. et simpelt script     ]


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