Hello, @Juan Andres, as explained the remzerovec is a workaround to some ngspice problem when some electrical nodes don't generate any data. These 'zero' vectors cause an error when writing the raw file and as a result nothing is written. The remzerovec command removes such vectors (often related to body currents of mos transistor) so following write command does not run into errors.
In my opinion this is a flaw in ngspice and should be resolved in a more elegant way. I now always put the remzerovec command before the write line, to avoid these irritating errors.