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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -