Restore native Y yank behavior

This commit is contained in:
m1ngsama 2026-05-13 13:26:33 +08:00
parent 49aae12415
commit 598aef83b4
2 changed files with 1 additions and 2 deletions

View file

@ -127,7 +127,6 @@ nnoremap <silent> <F6> :set list!<CR>:echo 'List chars: ' . (&list ? 'ON' : 'OFF
nnoremap <space> za
nnoremap Y y$
nnoremap Q <nop>
inoremap jk <Esc>

View file

@ -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 \