I have 2 files
file1.txt
a =
b =
file2.txt
1
2
Can I merge them using gvim so that the output looks like :
a = 1
b = 2
|
feedback
|
|
Yank a vertical block: Select e.g. the lines in If you run
| |||
|
feedback
|
|
works with pure vim as well:
then in file1.txt yank the block to a named register, lets say 'a':
then switch over to file2.txt and do a:
| |||
|
feedback
|
|
if you're working on Unix or Linux, just use the paste command: :%!paste - file2.txt this also works in the classic vi, or direct from the command line: $ paste file1.txt file2.txt >out.txt Hope, this helps | |||
|
feedback
|