From e6e3a10c87b53a199811a980be8fad92a54ed911 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 15 Feb 2022 10:53:58 +0000 Subject: [PATCH] Don't unmap Y before nvim 0.5 This version check might need some refinement, not actually sure when it was introduced but it's deffo not in 0.4.4. --- plugin/mappings.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/mappings.vim b/plugin/mappings.vim index 63d0cbf..a62afb9 100644 --- a/plugin/mappings.vim +++ b/plugin/mappings.vim @@ -115,7 +115,7 @@ else noremap p "+p noremap P "+P endif -if has('nvim') +if has('nvim-0.5') " Undo neovim's default mapping of Y to y$ unmap Y endif