Vim: copy text across buffers in one command -
if want copy lines 17-19 line 33, can in 1 command this:
:17,19t33
is there equivalent way of doing if destination open vim buffer? example, if wanted copy lines 17,19 of current buffer buffer #2, there way without yanking text, switching buffers , pasting?
note typically have source , destination files open in split.
does chaining counts one-liner? e.g.:
:17,19y | b# | 33put | b#
not sophisticated, should it. used b#
convenience.
kudos peter pointing out mistake made -- moved initial buffer switch end.
Comments
Post a Comment