1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: keymaps: dont jump half pages on shift + arrow keys.

This commit is contained in:
Henrik Hautakoski 2024-10-11 14:17:42 +02:00
parent 5b5015c69b
commit 7d2de7d5fc

View file

@ -67,6 +67,11 @@ vim.keymap.set('x', '<leader>p', [["_dP]], { silent = true, desc = "Paste withou
-- Navigation
--
vim.keymap.set('n', '<S-Up>', 'v<Up>')
vim.keymap.set('n', '<S-Down>', 'v<Down>')
vim.keymap.set('v', '<S-Up>', '<Up>')
vim.keymap.set('v', '<S-Down>', '<Down>')
-- Make half page jumps stay in the center of screen
vim.keymap.set('n', '<C-u>', '<C-u>zz', { silent = true, desc = 'jump half a page up' })