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.
Asked
Active
Viewed 587 times
0
-
Are you yanking columns or yanking lines? Do you have two vi sessions open or do you have two files open in different windows within the same vi instance? – CoconutBandit Sep 22 '16 at 15:29
-
I want to yank column..I have two vi sessions open.. – Konda Reddy Sep 22 '16 at 15:40
1 Answers
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