Skip to content

Instantly share code, notes, and snippets.

@ostheperson
Last active December 28, 2023 20:46
Show Gist options
  • Save ostheperson/2de67d072189aa5a8a5345d49364a7cf to your computer and use it in GitHub Desktop.
Save ostheperson/2de67d072189aa5a8a5345d49364a7cf to your computer and use it in GitHub Desktop.
vim: Bypass system clipboard with dd or yy
In vim when using a clipboard tool like xclip with vim, to prevent `yy` and `dd` commands from copying to clipboard while keeping the functionality to copy to system
set vim.opt.keymap to nothing, or remove it entirely
```
~~vim.opt.keymap~~
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment