From 8e2505bfca390dfe6dbe5371652c43e644e2a697 Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Wed, 13 May 2026 13:28:21 +0800 Subject: [PATCH] Restore native Y yank behavior (#30) --- modules/core.vim | 1 - scripts/test.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core.vim b/modules/core.vim index 6ed7a11..279322c 100644 --- a/modules/core.vim +++ b/modules/core.vim @@ -127,7 +127,6 @@ nnoremap :set list!:echo 'List chars: ' . (&list ? 'ON' : 'OFF nnoremap za -nnoremap Y y$ nnoremap Q inoremap jk diff --git a/scripts/test.sh b/scripts/test.sh index dee1c92..e3f4f10 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -202,7 +202,7 @@ check_vim() { grep -Fq 'Open that filetype and run :LspInstallServer once.' "$TMP_ROOT/status-default.txt" XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \ - -c 'if maparg("0", "n") !=# "" || maparg("0", "v") !=# "" | cquit | endif' \ + -c 'if maparg("0", "n") !=# "" || maparg("0", "v") !=# "" || maparg("Y", "n") !=# "" | cquit | endif' \ -c 'qa!' 2>&1 XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \