VIS3COS. III. Environmental effects on the star formation histories of galaxies at z~0.8 seen in [O II], H, and D_n4000