From 5ea67f74196a2434c8ddc65d82fb924a06686311 Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 5 Oct 2022 13:37:43 +0200 Subject: [PATCH] leader+d to delete without yank --- nvim/custom/mappings.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/custom/mappings.lua b/nvim/custom/mappings.lua index d6a2ec3..fd30fa4 100644 --- a/nvim/custom/mappings.lua +++ b/nvim/custom/mappings.lua @@ -3,12 +3,14 @@ local M = {} M.general = { n = { [" "] = { ":noh", "Clean search highlight" }, + ["d"] = { "\"_d", "Delete without yank" }, }, v = { ["J"] = { ":m '>+1gv=gv", "Move visual block up" }, ["K"] = { ":m '<-2gv=gv", "Move visual block down" }, ["<"] = { ""] = { ">gv", "Keep visual on shift" }, + ["d"] = { "\"_d", "Delete without yank" }, } }