Attila Bukta, PhD
Home > Linux > How to copy data in VI editor

How to copy data in VI editor

January 20th, 2009 Leave a comment Go to comments
vi first  edit source file
then move your cursor to start of selection
ma       mark current position with letter a
then move your cursor to end of selection
y'a     yank to buffer x from current position to mark a
:e other  edit target file
move cursor to where you want the data
p       put from buffer x
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.