I have a 2 really long concatenated arrays:
["MyHashMap"
"remove"
"put"
"remove"]
[[]
[27]
[65,65]
[19]]
I just go into visual mode, y
the second array, and then go back to the first line, go to the end of it, add space and hit p
. It turns into:
["MyHashMap"
[[]
[27]
[65,65]
[19]]
"remove"
"put"
"remove"]
My desired output is:
["MyHashMap" [[]
"remove" [27]
"put" [65,65]
"remove"] [19]]
How can I achieve this?
vim
.[
, but 5 closing ones]
?,
with a\n
. That transformed 2 lines into 1 long column. Now, I want to make it two columns of input/output so that I can compare the values and find where the bug is. There are more than 2 arrays that I need to arrange in this way for a convenient comparison, but baby steps.