From 49aae12415932ad9c09e88c7559ae04b8b2994cf Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Wed, 13 May 2026 13:24:04 +0800 Subject: [PATCH] Restore native zero motion (#28) --- modules/core.vim | 2 -- scripts/test.sh | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core.vim b/modules/core.vim index c06a196..6ed7a11 100644 --- a/modules/core.vim +++ b/modules/core.vim @@ -108,8 +108,6 @@ nnoremap h :bprevious nnoremap cd :lcd %:p:h:pwd -nnoremap 0 ^ -vnoremap 0 ^ nnoremap gV `[v`] cnoremap diff --git a/scripts/test.sh b/scripts/test.sh index c2eadf1..dee1c92 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -201,6 +201,10 @@ check_vim() { grep -Fq 'LSP actions are buffer-local and start after a server attaches.' "$TMP_ROOT/status-default.txt" 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 'qa!' 2>&1 + XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \ -c 'silent! delcommand LspStatus' \ -c 'silent! delcommand LspInstallServer' \