Skip to content
Snippets Groups Projects
Unverified Commit 7c40b370 authored by amtoine's avatar amtoine
Browse files

split internal and system clipboard

parent feb832a2
Branches
No related tags found
No related merge requests found
-- greatest remap ever
vim.keymap.set("x", "<leader>p", [["_dP]], { desc = "paste without overwriting the register" })
-- next greatest remaps ever : asbjornHaland
vim.keymap.set({ "n", "v" }, "<leader>p", [["+p]], { desc = "paste without overwriting the register" })
vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]], { desc = "yank to system clipboard only on demand" })
vim.keymap.set("n", "<leader>Y", [["+Y]], { desc = "yank to system clipboard only on demand" })
vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]], { desc = "cut to system clipboard only on demand" })
vim.keymap.set({ "n", "v" }, "<leader>d", [["+d]], { desc = "cut to system clipboard only on demand" })
vim.opt.clipboard = "unnamedplus"
vim.opt.clipboard = ""
vim.opt.cursorline = true
vim.opt.cursorcolumn = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment