2023-08-08 16:24:15 +03:00
|
|
|
require('key/rekey')
|
|
|
|
|
|
|
|
-- switch windows.
|
|
|
|
rekey_normal('<Leader>w', '<C-w>k')
|
|
|
|
rekey_normal('<Leader>a', '<C-w>h')
|
|
|
|
rekey_normal('<Leader>s', '<C-w>j')
|
|
|
|
rekey_normal('<Leader>d', '<C-w>l')
|
|
|
|
|
|
|
|
-- switch buffers.
|
|
|
|
-- rekey_normal('<Tab>', '<cmd>bnext<cr>')
|
|
|
|
rekey_normal('<Leader>e', '<cmd>BufferLineCycleNext<cr>')
|
|
|
|
rekey_normal('<Leader>q', '<cmd>BufferLineCyclePrev<cr>')
|
|
|
|
rekey_normal('<Leader>E', '<cmd>BufferLineMoveNext<cr>')
|
|
|
|
rekey_normal('<Leader>Q', '<cmd>BufferLineMovePrev<cr>')
|
|
|
|
|
|
|
|
-- close buffer.
|
|
|
|
-- rekey_normal('<Leader>x', '<cmd>bd!<cr>')
|
|
|
|
rekey_normal('<Leader>x', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>')
|
|
|
|
|
2023-10-19 16:55:48 +03:00
|
|
|
-- move window. TODO: remove?
|
2023-08-08 16:24:15 +03:00
|
|
|
rekey_normal('<Leader>m', '<cmd>WinShift<cr>')
|
|
|
|
|
|
|
|
-- splits.
|
|
|
|
rekey_normal('<Leader>|', '<cmd>vsplit<cr>')
|
|
|
|
rekey_normal('<Leader>-', '<cmd>split<cr>')
|
|
|
|
rekey_normal('<Leader>c', '<C-w>q')
|
|
|
|
|
|
|
|
-- close all hidden buffers.
|
|
|
|
rekey_normal('<Leader>X', '<cmd>BDelete hidden<cr><C-l>')
|
|
|
|
|
|
|
|
-- navigate hjkl in insert mode.
|
|
|
|
rekey_input('<C-h>', '<Left>')
|
|
|
|
rekey_input('<C-j>', '<Down>')
|
|
|
|
rekey_input('<C-k>', '<Up>')
|
|
|
|
rekey_input('<C-l>', '<Right>')
|