-- mappings, including plugins local function map(m, k, v) vim.keymap.set(m, k, v, { noremap = true, silent = true }) end -- buffers map("n", "", ":bnext") map("n", "", ":bprevious") map("n", "q", ":BufferClose") map("n", "Q", ":BufferClose!") map("n", "U", "::bufdo bd") --close all map("n", "vs", ":vsplit:bnext") --ver split + open next buffer -- buffer position nav + reorder map("n", "", "BufferMovePrevious") map("n", "", "BufferMoveNext") map("n", "", "BufferGoto 1") map("n", "", "BufferGoto 2") map("n", "", "BufferGoto 3") map("n", "", "BufferGoto 4") map("n", "", "BufferGoto 5") map("n", "", "BufferGoto 6") map("n", "", "BufferGoto 7") map("n", "", "BufferGoto 8") map("n", "", "BufferGoto 9") map("n", "", "BufferLast") map("n", "", "BufferPin") -- misc --map("n", "s", ":%s//g") --replace all map("n", "t", ":NvimTreeToggle") --open file explorer map("n", "l", ":Twilight") --surrounding dim