From 9fdb3c70f6cec1ee9ad32ac4257e8deb1fef2525 Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Wed, 3 Dec 2025 10:00:41 -0500 Subject: update --- .config/nvim/lua/map.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua/map.lua') diff --git a/.config/nvim/lua/map.lua b/.config/nvim/lua/map.lua index 94f57d2..6dcc1da 100644 --- a/.config/nvim/lua/map.lua +++ b/.config/nvim/lua/map.lua @@ -40,9 +40,11 @@ vim.keymap.set(nv, "G", "Gzz", {}) -- Make going to the end of a line as easy as going to the beginning vim.keymap.set({"n", "v", "o"}, "+", "$", {}) --- Allow yanking to system clipboard +-- Yanking and pasting vim.keymap.set(nv, "y", "\"+y", {}) vim.keymap.set(nv, "p", "\"+p", {}) +vim.keymap.set("x", "p", "\"_dP", {}) +vim.keymap.set("x", "P", "p", {}) -- Commands vim.keymap.set(nv, "c", "set invhlsearch", {silent=true}) @@ -51,6 +53,8 @@ vim.keymap.set(nv, "t", function() vim.cmd("split") vim.cmd("term") end, {silent=true}) +vim.keymap.set("n", "{", "cp", {silent=true}) +vim.keymap.set("n", "}", "cn", {silent=true}) -- Common typo with me vim.api.nvim_create_user_command("W", "w", {bang=true}) -- cgit v1.3-2-g0d8e