diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-11 22:20:31 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-11 22:20:31 +0200 |
commit | 1f04bef2db25bb386c70fa3b63bb73cedb07f9a9 (patch) | |
tree | 17ab862964e2301eeaa831a7fd2472a490549e42 | |
parent | 22f4bdbe08a6d7514171ad4650d5a9a69db664a9 (diff) |
nvim: Remap in visual- but not select mode
-rw-r--r-- | .config/nvim/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index c0709dc..49d7165 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -72,9 +72,9 @@ vim.keymap.set('n', 'M', ':make<CR>', { desc = 'Run the configured compiler' }) vim.keymap.set('n', 'V', '<C-v>', { desc = 'Enter visual-block mode' }) -vim.keymap.set('v', '<C-j>', ":m '>+1<CR>gv=gv", +vim.keymap.set('x', '<C-j>', ":m '>+1<CR>gv=gv", { desc = 'Move a selection down a line' }) -vim.keymap.set('v', '<C-k>', ":m '<-2<CR>gv=gv", +vim.keymap.set('x', '<C-k>', ":m '<-2<CR>gv=gv", { desc = 'Move a selection up a line' }) vim.keymap.set({ 'n', 'o', 'x' }, '€', '$', { desc = 'Go to end of the line' }) |