This commit is contained in:
jimrothstein 2023-09-14 13:13:31 -07:00
parent e1cdf01397
commit 844099e06e
1 changed files with 8 additions and 0 deletions

View File

@ -333,6 +333,14 @@ vim.o.termguicolors = true
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
-- REF: https://nanotipsforvim.prose.sh/keeping-your-register-clean-from-dd
-- if dd action hold content: keep it
-- if dd action holds BLANK LINE: sent to black hold _dd
vim.keymap.set("n", "dd", function ()
if vim.fn.getline(".") == "" then return '"_dd' end
return "dd"
end, {expr = true})
-- vim.keymap.set( {'n', '<leader>]nc',
-- Remap for dealing with word wrap
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })