summaryrefslogtreecommitdiffhomepage
path: root/vim.html.markdown
diff options
context:
space:
mode:
authorMarcel Ribeiro Dantas <ribeirodantasdm@gmail.com>2022-06-27 00:28:16 +0200
committerGitHub <noreply@github.com>2022-06-27 00:28:16 +0200
commit5d133e847846b4c8d436f7a567674c2e1df35a13 (patch)
tree7ebc7704f02ceef195a8896a80a06ed81cc12585 /vim.html.markdown
parent27f7f03401ff747a61a912fdf73549b1788b13e1 (diff)
parent8f28c8021b8ce3cb791861ad19c41e12228d8bcd (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'vim.html.markdown')
-rw-r--r--vim.html.markdown13
1 files changed, 10 insertions, 3 deletions
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**.
<esc> # '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