nvim: keymaps: scroll in visual mode, too
This commit is contained in:
parent
e84cb3c7c0
commit
2a6c37ea2c
|
@ -12,6 +12,9 @@ for key, cmd in pairs({ Left = 'bprevious', Right = 'bnext' }) do
|
|||
map('n', format('<M-%s>', key), format(':%s<cr>', cmd))
|
||||
map('i', format('<M-%s>', key), format('<esc>:%s<cr>', cmd))
|
||||
end
|
||||
-- move buffer without moving cursor
|
||||
map({ 'n', 'v' }, '<M-Up>', '<C-y>')
|
||||
map({ 'n', 'v' }, '<M-Down>', '<C-e>')
|
||||
|
||||
--windows
|
||||
for key, letter in pairs({ Left = 'h', Down = 'j', Up = 'k', Right = 'l' }) do
|
||||
|
@ -50,10 +53,6 @@ map({ 'n', 'i' }, '<C-S-Del>',
|
|||
end
|
||||
)
|
||||
|
||||
-- move buffer without moving cursor
|
||||
map('n', '<M-Up>', '<C-y>')
|
||||
map('n', '<M-Down>', '<C-e>')
|
||||
|
||||
-- system clipboard
|
||||
map('v', '<Leader>y', '"+y')
|
||||
map('n', '<Leader>p', '"+p')
|
||||
|
|
Loading…
Reference in New Issue
Block a user