If I have file1.txt which contains the following:
Line 1.1;
Line 1.2;
Line 1.3;
and file2.txt with the following
Line 2.1;
Line 2.2;
Line 2.3;
I want to copy all the lines of file2.txt and paste it to file1.txt in a way that stays like this:
Line 1.1;Line 2.1;
Line 1.2;Line 2.2;
Line 1.3;Line 2.3;
how can I do it?
edit:
The lines can have some variation of character numbers like if file1 have
Cabo de Força MD9 1.5M NBR14136 3X0,50 – 5815;R$ 8,90;
Empire Cabo HDMI 1.4TV 3D M/M 2m Gold – 2304;R$ 13,90;
Filtro de Linha SMS 4 Tomadas 1,3M Bivolt 62328;R$ 33,90;
and file2 have:
Placa de Vídeo ASUS RADEON RX 560 STRIX ROG STRIX-RX560-4G-GAMING 4GB GDDR5 PCI-EXP; R$ 759,00;
Fonte Corsair CX600 600W CP-9020048-WW ATX 2.3 PFC Ativo; R$ 339,00;
Memória DDR4 Kingston HyperX Fury HX424C15FB/8 8GB 2400MHz; R$ 429,00;
Just as an example.
set virtualedit=block
, ctrl-v to select and yank in the source file, then ctrl-v in the target file selecting the rightmost column (which ve=block allows) and put.