Closed voyeg3r closed 2 months ago
improved dd
map(
'n',
'dd',
function()
local empty_line = vim.api.nvim_get_current_line():match('^%s*$')
return (empty_line and '"_dd' or 'dd')
end,
{ expr = true, desc = "delete blank lines to black hole register" }
)
This seems like a nice change, but I don't know that everyone would want this, so I will close the issue for now.
whit this you do not need full url so gx works
there is also a map function on my utils