diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index d7223c9f..a4ae8d65 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -27,3 +27,9 @@ map("n", "ot", function() end) map("t", "", "", { desc = "Escape to Normal mode in terminal" }) + +map("v", "p", '"_dP', { desc = "Replace and paste with blackhole register" }) + +map("n", "", "zz", { desc = "Page up and center" }) + +map("n", "", "zz", { desc = "Page down and center" }) diff --git a/lua/config/options.lua b/lua/config/options.lua index 9a9b308e..60420a10 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -2,7 +2,7 @@ vim.g.have_nerd_font = true -- Make line numbers default -vim.opt.number = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a'