nvim: make change buffer/tab keymaps work in insert mode
This commit is contained in:
parent
95b5fe29a4
commit
6644ca74ce
|
@ -6,13 +6,18 @@ map('n', '<space>', '<nop>')
|
|||
|
||||
vim.g.mapleader = ','
|
||||
|
||||
map('n', '<Leader>b', ':buffers<CR>:buffer<Space>')
|
||||
map('n', '<M-Left>', ':bprevious<cr>')
|
||||
map('n', '<M-Right>', ':bnext<cr>')
|
||||
map('n', '<M-S-Left>', ':tabprevious<cr>')
|
||||
map('n', '<M-S-Right>', ':tabnext<cr>')
|
||||
map('n', '<Leader>b', ':buffers<CR>:buffer<Space>')
|
||||
map('n', '<M-Left>', ':bprevious<cr>')
|
||||
map('n', '<M-Right>', ':bnext<cr>')
|
||||
map('i', '<M-Left>', '<esc>:bprevious<cr>')
|
||||
map('i', '<M-Right>', '<esc>:bnext<cr>')
|
||||
|
||||
map('n', '<M-BS>', 'db')
|
||||
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>')
|
||||
|
||||
map('n', '<M-BS>', 'db')
|
||||
vim.cmd([[map! <M-BS> <C-W>]]) -- TODO: figure out how to do that with lua
|
||||
map('n', '<C-Del>', 'dw')
|
||||
map('i', '<C-Del>', '<C-O>dw')
|
||||
map('n', '<C-Del>', 'dw')
|
||||
map('i', '<C-Del>', '<C-O>dw')
|
||||
|
|
Loading…
Reference in New Issue
Block a user