Riaan's SysAdmin Blog

My tips, howtos, gotchas, snippets and stuff. Use at your own risk!

neovim

Neovim and Lazyvim Keymap issue

I have tried Neovim a few times in the past. But quit abruptly as soon as I am reminded Shift-Y p does not insert the yanked line on a new line like vi has done for 30 years. And NOT insert the text in my current line somewhere!

Well I finally at least found a fix for it and remind myself here to avoid future frustration.

~ tail -1 .config/nvim/lua/config/keymaps.lua 
vim.keymap.set("n", "Y", "yy", { desc = "Fix the messed up Yank and Put" })

admin

Bio Info for Riaan