--Move lines vim.keymap.set("v", "J", ":m '>+1gv=gv") vim.keymap.set("v", "K", ":m '<-2gv=gv") --quickfix keybinds vim.keymap.set("n", "", "cprevzz") vim.keymap.set("n", "", "cnextzz") --buffer keybinds vim.keymap.set("n", "", "bp") vim.keymap.set("n", "", "bn") --jk as escape vim.keymap.set("i", "jk","") -- Copy to system clipboard vim.keymap.set({ 'n', 'x' }, 'gy', '"+y', { desc = 'Copy to system clipboard' }) -- Paste from system clipboard in normal mode vim.keymap.set('n', 'gp', '"+p', { desc = 'Paste from system clipboard' }) -- Paste from system clipboard in visual mode without overwriting the clipboard vim.keymap.set('x', 'gp', '"+P', { desc = 'Paste from system clipboard' }) --Center screen after some motions vim.keymap.set("n", "", "zz", {desc = "Center cursor after moving down half-page"}) vim.keymap.set("n", "", "zz", {desc = "Center cursor after moving down half-page"}) vim.keymap.set("n", "G", "Gzz", {desc = "Center cursor after moving down half-page"})