Last active
December 28, 2023 20:46
-
-
Save ostheperson/2de67d072189aa5a8a5345d49364a7cf to your computer and use it in GitHub Desktop.
vim: Bypass system clipboard with dd or yy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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