1
0
Fork 0

nvim: add window movement keymaps

This commit is contained in:
tastytea 2022-08-11 16:02:07 +02:00
parent 6e39eaaedb
commit 64131a109f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 9 additions and 5 deletions

View File

@ -11,11 +11,15 @@ map('n', '<M-Right>', ':bnext<cr>')
map('i', '<M-Left>', '<esc>:bprevious<cr>')
map('i', '<M-Right>', '<esc>:bnext<cr>')
-- tabs
map('n', '<M-S-Left>', ':tabprevious<cr>')
map('n', '<M-S-Right>', ':tabnext<cr>')
map('i', '<M-S-Left>', '<esc>:tabprevious<cr>')
map('i', '<M-S-Right>', '<esc>:tabnext<cr>')
--windows
map('n', '<M-S-Left>', ':wincmd h<cr>')
map('n', '<M-S-Down>', ':wincmd j<cr>')
map('n', '<M-S-Up>', ':wincmd k<cr>')
map('n', '<M-S-Right>', ':wincmd l<cr>')
map('i', '<M-S-Left>', '<esc>:wincmd h<cr>')
map('i', '<M-S-Down>', '<esc>:wincmd j<cr>')
map('i', '<M-S-Up>', '<esc>:wincmd k<cr>')
map('i', '<M-S-Right>', '<esc>:wincmd l<cr>')
-- remove word
map('n', '<M-BS>', 'db')