0

I was trying to yank a column of 1300 lines from one vi editor and paste it on other open vi editor. I could able to paste only 49 lines of a column.

1 Answers1

0

I'm not sure you can yank columns between vim sessions. Your best bet might be two open up both files within one vim session using :sp or :vsp then you can copy and paste as you normally do within one file

If you wanted to copy lines over, in command mode, you can use: :r! sed -n <begining line nubmer>,<end line number>p <path to file>. Where r! runs an external command, and sed searches for only the lines in the range given.

For more information, check out these sources: http://vimdoc.sourceforge.net/htmldoc/windows.html https://stackoverflow.com/a/9644522/3865495

Community
  • 1
  • 1
CoconutBandit
  • 476
  • 1
  • 3
  • 13