Make moving code require Alt+Shift.

This prevents an <Esc> quickly followed by <j> or <l> from moving
the current line.
lazyvim
Andy Teijelo 2023-02-02 10:55:27 -05:00
parent aa149d21ef
commit 76fed65fbb
1 changed files with 4 additions and 4 deletions

View File

@ -99,10 +99,10 @@ keymap("n", "<F17>", "<cmd>lua require'dap'.terminate()<cr>", opts) -- Shift+F5
--keymap("n", "<leader>di", "<Plug>VimspectorBalloonEval", opts)
-- move.nvim
keymap('n', '<M-j>', ':MoveLine(1)<cr>', opts)
keymap('n', '<M-k>', ':MoveLine(-1)<cr>', opts)
keymap('x', '<M-j>', ':MoveBlock(1)<cr>', opts)
keymap('x', '<M-k>', ':MoveBlock(-1)<cr>', opts)
keymap('n', '<M-J>', ':MoveLine(1)<cr>', opts)
keymap('n', '<M-K>', ':MoveLine(-1)<cr>', opts)
keymap('x', '<M-J>', ':MoveBlock(1)<cr>', opts)
keymap('x', '<M-K>', ':MoveBlock(-1)<cr>', opts)
-- disable arrow keys
keymap("n", "<Right>", "<Nop>", opts)