Results 1 to 3 of 3
Hey,
I was wondering. I've never figured this one out...
Say that I want to copy a block of text in vi editor. And then paste that block of text ...
- 11-30-2006 #1Just Joined!
- Join Date
- Jan 2006
- Posts
- 43
vi - cut/paste block of text
Hey,
I was wondering. I've never figured this one out...
Say that I want to copy a block of text in vi editor. And then paste that block of text to a different file, or even the same file. I am just wanting to copy a chunk of text and be able to paste it, not just one line - but several lines.
Never had figured it out. Any ideas?
- 11-30-2006 #2Linux Newbie
- Join Date
- Aug 2006
- Posts
- 107
p inserts deleted text after the current cursor line
P inserts deleted text before the current cursor line
yy copies text
5yy would copy five lines
dd deletes files
5dd would delete five lines
- 11-30-2006 #3Just Joined!
- Join Date
- Jan 2006
- Posts
- 43
Nice. I appreciate that.
Originally Posted by deanlinkous


Reply With Quote
