local Remap = require("serxoz.keymap") local nnoremap = Remap.nnoremap local vnoremap = Remap.vnoremap local inoremap = Remap.inoremap local xnoremap = Remap.xnoremap local nmap = Remap.nmap nnoremap("pv", ":Ex") nnoremap("u", ":UndotreeShow") vnoremap("J", ":m '>+1gv=gv") vnoremap("K", ":m '<-2gv=gv") vnoremap("<", "", ">gv") nnoremap("Y", "yg$") nnoremap("n", "nzzzv") nnoremap("N", "Nzzzv") nnoremap("J", "mzJ`z") nnoremap("", "zz") nnoremap("", "zz") nnoremap("vwm", function() require("vim-with-me").StartVimWithMe() end) nnoremap("svwm", function() require("vim-with-me").StopVimWithMe() end) -- greatest remap ever xnoremap("p", "\"_dP") -- next greatest remap ever : asbjornHaland nnoremap("y", "\"+y") vnoremap("y", "\"+y") nmap("Y", "\"+Y") nnoremap("d", "\"_d") vnoremap("d", "\"_d") vnoremap("d", "\"_d") -- This is going to get me cancelled inoremap("", "") nnoremap("Q", "") nnoremap("", "cnextzz") nnoremap("", "cprevzz") nnoremap("k", "lnextzz") nnoremap("j", "lprevzz") nnoremap("s", ":%s/\\<\\>//gI") -- Buffers nnoremap("", ":bnext") nnoremap("", ":bprevious") nnoremap("x", ":bdelete")