View Single Post
  #2   (View Single Post)  
Old 13th December 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by guitarscn View Post
I'm trying to copy paste about 5k lines from a vi text file onto a...
:[range]y[ank] [x]

...which yanks [range] lines [into register x].
:[line]pu[t] [x]

...which puts the text [from register x] after [line] (default current line).

Most vi(1) cheatsheets cover these types of actions. For example:

http://bullium.com/support/vim.html#move

Practice with dummy files first.
Reply With Quote