Skip to content

Commit

Permalink
vim: Added system clipboard copy-paste shortcuts (rstacruz#522)
Browse files Browse the repository at this point in the history
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
  • Loading branch information
gautamnaik1994 and rstacruz authored Jun 23, 2020
1 parent 41a2964 commit b4e978f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Getting started
{: .-prime}

| Shortcut | Description |
| --- | --- |
| -------------- | -------------------------------- |
| `:qa` | Close all files |
| `:qa!` | Close all files, abandon changes |
| --- | --- |
Expand Down Expand Up @@ -127,15 +127,18 @@ Getting started

### Clipboard

| Shortcut | Description |
| --- | --- |
| `x` | Delete character |
| --- | --- |
| `dd` | Delete line _(Cut)_ |
| `yy` | Yank line _(Copy)_ |
| --- | --- |
| `p` | Paste |
| `P` | Paste before |
| Shortcut | Description |
| --- | --- |
| `x` | Delete character |
| --- | --- |
| `dd` | Delete line _(Cut)_ |
| `yy` | Yank line _(Copy)_ |
| --- | --- |
| `p` | Paste |
| `P` | Paste before |
| --- | --- |
| `"*p` _/_ `"+p` | Paste from system clipboard |
| `"*y` _/_ `"+y` | Paste to system clipboard |
{: .-shortcuts}

### Visual mode
Expand Down

0 comments on commit b4e978f

Please sign in to comment.