Science, asked by royrishabh9707, 1 year ago

Difference between yank and delete in slide share

Answers

Answered by yogeswari2002
4
…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…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.

Similar questions