From a726bf12aca9a31dc101fbb097d6a54d87943225 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 9 Nov 2021 09:58:27 +0100 Subject: [PATCH] Feat: add Y as yank to the end of the line --- nvim/.config/nvim/lua/mappings.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/.config/nvim/lua/mappings.lua b/nvim/.config/nvim/lua/mappings.lua index 474a0ea..e6b98ce 100644 --- a/nvim/.config/nvim/lua/mappings.lua +++ b/nvim/.config/nvim/lua/mappings.lua @@ -15,3 +15,5 @@ map('v', '>', '>gv', {}) -- Automatically spell check last error in insert mode map('i', '', 'u[s1z=`]au', default_opts) +-- Yank to the end of the line +map('n', 'Y' ,'y$', default_opts)