mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim: keymaps: dont jump half pages on shift + arrow keys.
This commit is contained in:
parent
5b5015c69b
commit
7d2de7d5fc
1 changed files with 5 additions and 0 deletions
|
|
@ -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' })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue