Copy column from one vi editor to other -
i trying yank column of 1300 lines 1 vi editor , paste on other open vi editor. able paste 49 lines of column.
i'm not sure can yank columns between vim sessions. best bet might 2 open both files within 1 vim session using :sp
or :vsp
can copy , paste within 1 file
if wanted copy lines over, in command mode, can use: :r! sed -n <begining line nubmer>,<end line number>p <path file>
. r!
runs external command, , sed
searches lines in range given.
for more information, check out these sources: http://vimdoc.sourceforge.net/htmldoc/windows.html https://stackoverflow.com/a/9644522/3865495
Comments
Post a Comment