Let's suppose I have a file containing:
xxx
yyy
zzz
and another file:
kkk
qqq
ppp
I want to obtain:
xxxkkk
yyyqqq
zzzppp
Is that possible in Vim with some command? (I've tried using VISUAL BLOCK but with no success).
In my particular case I have two big files with many lines to paste so the answer could also be some shell command but i would like to know if there's a way to do it even within the same file.
Best Answer
From the command line, you could try
That does exactly what you want.
Visual Block mode in
vim
is also perfectly suited for this task. Are you sure you did it correctly? You shouldy
for yankingx
) and pressp
.