Join David D. Levine for an in-depth discussion in this video Moving content with delete, yank, and put, part of Learning vi.
…Although V.I. does support undo, like a modern word processor.…It doesn't exactly have the concepts of copy, and paste.…What it does have instead of cut, copy, and paste.…It has delete, yank, and put.…Delete we've already discussed.…dd deletes the current line.…dw, deletes a word, d(), deletes a sentence and so on.…The delete command works the same as cut in a modern word processor.…In that it puts the deleted text into a buffer.…The buffer is like the OS clipboard, but it isn't the same as the OS clipboard.…
It belongs to this copy of VI ony.…If you're running multiple copies of VI in different windows,…then the buffer of one VI is not the same as another buffer of VI.…Unlike the OS clipboard,…which can be used to copy information from one process to another.…This buffer is private to this copy of vi.…Vi's equivalent of copy is called Yank.…The y command works like the d command in that yy Yanks a line.…Just as dd.…Deletes a line and yw yanks a word,…y( yanks a sentence, y yanks a paragraph and so on.…
The y command is just like d in that it puts the text into the buffer, but…
AuthorDavid D. Levine
- Entering and leaving vi
- Understanding the Command, Insert, and Colon modes
- Moving around in files
- Editing text
- Moving content with delete, yank, and put
- Searching with regular expressions
- Customizing vi
- Filtering text through shell commands
Skill Level Beginner
1. Exploring vi
What is vi?2m 26s
2. Getting Started with vi
3. Moving Around within a File
4. Basic Text Editing
5. Undo, Repeat, Yank, and Put
6. Search and Replace
7. Advanced Editing Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.