-- Loaded by `null.config` local map = require("null.util").map -- Map Ctrl+U as U so it can be used as redo map("n", "", "U") -- Map U as redo map("n", "U", "") -- Yank and Put map("nv", "", '"+y') map("n", "", '"+p') map("nv", "", '"+y') map("n", "", '"+p') -- Comment a line like how it is on VSC (using vim-commentary) map("n", "", "gcc", { remap = true }) map("v", "", "gc", { remap = true }) map("i", "", "gcc", { remap = true }) -- Normal command shortcut for VISUAL mode map("v", ".", ":normal .") -- Clear search map("n", "c", "noh") -- Navigate splits map("n", "", "h") map("n", "", "j") map("n", "", "k") map("n", "", "l") -- Ctrl+P or Ctrl+N alternatives -- map("i", "", vim.fn.pumvisible() == 1 and "" or "") -- map("i", "", vim.fn.pumvisible() == 1 and "" or "") -- map("i", "", vim.fn.pumvisible() == 1 and "" or "") -- map("i", "", vim.fn.pumvisible() == 1 and "" or "") -- Enter to complete -- map("i", "", vim.fn.pumvisible() == 1 and "" or "")