Line/word selection moving bindings are now silent
This commit is contained in:
parent
4e298ac791
commit
f852b87601
1 changed files with 10 additions and 10 deletions
|
@ -35,18 +35,18 @@ vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower win
|
|||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
-- Normal-mode commands
|
||||
vim.keymap.set('n', '<A-j>', ':MoveLine(1)<CR>')
|
||||
vim.keymap.set('n', '<A-k>', ':MoveLine(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-h>', ':MoveHChar(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-l>', ':MoveHChar(1)<CR>')
|
||||
vim.keymap.set('n', '<leader>wf', ':MoveWord(1)<CR>')
|
||||
vim.keymap.set('n', '<leader>wb', ':MoveWord(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-j>', '<cmd>MoveLine(1)<CR>')
|
||||
vim.keymap.set('n', '<A-k>', '<cmd>MoveLine(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-h>', '<cmd>MoveHChar(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-l>', '<cmd>MoveHChar(1)<CR>')
|
||||
vim.keymap.set('n', '<leader>wf', '<cmd>MoveWord(1)<CR>')
|
||||
vim.keymap.set('n', '<leader>wb', '<cmd>MoveWord(-1)<CR>')
|
||||
|
||||
-- Visual-mode commands
|
||||
vim.keymap.set('v', '<A-j>', ':MoveBlock(1)<CR>')
|
||||
vim.keymap.set('v', '<A-k>', ':MoveBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-h>', ':MoveHBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-l>', ':MoveHBlock(1)<CR>')
|
||||
vim.keymap.set('v', '<A-j>', '<cmd>MoveBlock(1)<CR>')
|
||||
vim.keymap.set('v', '<A-k>', '<cmd>MoveBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-h>', '<cmd>MoveHBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-l>', '<cmd>MoveHBlock(1)<CR>')
|
||||
|
||||
-- [[ Basic Autocommands ]]
|
||||
-- See `:help lua-guide-autocommands`
|
||||
|
|
Loading…
Reference in a new issue