local map = vim.api.nvim_set_keymap local function n(...) map("n", ...) end local function x(...) map("x", ...) end local function i(...) map("i", ...) end -- Telescope n("", "Telescope find_files", { noremap = true }) n("", "Telescope buffers", { noremap = true }) -- Tree n("", ":NvimTreeToggle", {}) -- Movement n("", "", { noremap = true }) n("", "", { noremap = true }) n("", "", { noremap = true }) n("", "", { noremap = true }) -- Tabs n("", ":tabnew", {}) -- Split n("", ":vsplit", {}) n("", ":split", {}) -- Quit n("Q", "", { noremap = true }) vim.api.nvim_exec( [[ :command WQ wq :command Wq wq :command W w :command Q q :command WQa wqa :command Wqa wqa ]], true)