From f6d6a9cdaee109fa69df95a4545dfbcbf305ceae Mon Sep 17 00:00:00 2001 From: Kevin Samuel <57634663+kevinnls@users.noreply.github.com> Date: Mon, 3 Jan 2022 17:00:16 +0100 Subject: [vim/en] explain yank and delete at first occurrence (#4050) yank and delete unexplained at first occurrence not even basic requirement i.e. yank = copy - added draft explanations --- vim.html.markdown | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vim.html.markdown') diff --git a/vim.html.markdown b/vim.html.markdown index 55649cb2..00a44807 100644 --- a/vim.html.markdown +++ b/vim.html.markdown @@ -111,14 +111,21 @@ Vim is based on the concept on **modes**. # 'Escapes' from whichever mode you're in, into Command mode # Copying and pasting text + # Operations use the vim register by default + # Think of it as vim's private clipboard + # Yank ~ copy text into vim register y # Yank whatever is selected yy # Yank the current line + + # Delete ~ yank text and delete from file d # Delete whatever is selected dd # Delete the current line - p # Paste the copied text after the current cursor position - P # Paste the copied text before the current cursor position - x # Deleting character under current cursor position + + p # Paste text in vim register after the current cursor position + P # Paste text in vim register before the current cursor position + + x # Delete character under current cursor position ``` ## The 'Grammar' of vim -- cgit v1.2.3