Restore native Y yank behavior (#30)

This commit is contained in:
m1ngsama 2026-05-13 13:28:21 +08:00 committed by GitHub
parent 49aae12415
commit 8e2505bfca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 \