add mv command
This commit is contained in:
parent
50e521bda3
commit
53f3c1e59d
1 changed files with 21 additions and 1 deletions
|
@ -108,7 +108,27 @@ U.keymaps({
|
|||
{ "<C-l>", "<Right>", mode = { "i", "c" }, desc = "Movements in insert/command mode" },
|
||||
{ "<C-4>", "<End>", mode = { "i", "c" }, desc = "Movements in insert/command mode" },
|
||||
{ "<C-6>", "<Home>", mode = { "i", "c" }, desc = "Movements in insert/command mode" },
|
||||
|
||||
{
|
||||
"<leader>mv",
|
||||
function()
|
||||
-- Save to register z and delete the selection
|
||||
vim.cmd('normal! "zd')
|
||||
-- Jump to mark X
|
||||
vim.cmd("normal! `X")
|
||||
-- Paste
|
||||
vim.cmd('normal! "zp')
|
||||
end,
|
||||
desc = "Move visual selection to mark X and paste",
|
||||
mode = "v",
|
||||
},
|
||||
{
|
||||
"<leader>mv",
|
||||
function()
|
||||
vim.cmd("normal! mX")
|
||||
end,
|
||||
desc = "Mark current position with mark X (for Move Visual)",
|
||||
mode = "n",
|
||||
},
|
||||
|
||||
-- LSP/IDE/
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue