im trying to copy 300 lines from one file to another, in source file i type "300yy", it says it has yanked 300 lines.
go to destination file and press p, it pastes, but only the first 50 lines.
any idea why it isn't pasting the 300?
im trying to copy 300 lines from one file to another, in source file i type "300yy", it says it has yanked 300 lines.
go to destination file and press p, it pastes, but only the first 50 lines.
any idea why it isn't pasting the 300?
Something that worked for me is, when in visual mode, copying with a command like :1,300y that copies from line 1 to 300. You can switch this to any range of lines that you would like as :37,456y to copy from line 37 to 456.
If your vim is not showing the lines, you can set the lines with the command :set numbers
If you want to use that yanked/copied lines in another file, i recommend opening multiples tabs and copying and pasting the info between them.
To do this you can open them in the terminal with the command vim -p file1 file2.
To navigete between them you can use the commands gt and gT to move to the next and previous tab respectively.