How do I paste a column of text after a different column of text in Vim?

后端 未结 6 974
小蘑菇
小蘑菇 2020-12-07 11:22

I have two columns full of text, and I want to get them side-by-side. For example, I have

abc
def
ghi

and

123
456
789
         


        
6条回答
  •  被撕碎了的回忆
    2020-12-07 11:42

    You have:

    abc
    def
    ghi
    
    123
    456
    789
    

    Move your cursor onto the a. Then CTRL+V, and move your cursor to i. Press y.

    Next, add a space after the 3 character, and press p.

    Done.

提交回复
热议问题