Move last-change selection to leader mapping (#45)

This commit is contained in:
m1ngsama 2026-05-13 14:44:58 +08:00 committed by GitHub
parent fd081a2397
commit ff0de570de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -108,7 +108,7 @@ nnoremap <leader>h :bprevious<cr>
nnoremap <leader>cd :lcd %:p:h<cr>:pwd<cr> nnoremap <leader>cd :lcd %:p:h<cr>:pwd<cr>
nnoremap gV `[v`] nnoremap <leader>v `[v`]
cnoremap <C-p> <Up> cnoremap <C-p> <Up>
cnoremap <C-n> <Down> cnoremap <C-n> <Down>

View file

@ -203,6 +203,8 @@ check_vim() {
XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \ XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \
-c 'if maparg("0", "n") !=# "" || maparg("0", "v") !=# "" || maparg("Y", "n") !=# "" || maparg("Q", "n") !=# "" || maparg("<Space>", "n") !=# "" | cquit | endif' \ -c 'if maparg("0", "n") !=# "" || maparg("0", "v") !=# "" || maparg("Y", "n") !=# "" || maparg("Q", "n") !=# "" || maparg("<Space>", "n") !=# "" | cquit | endif' \
-c 'if maparg("gV", "n") !=# "" | cquit | endif' \
-c 'if maparg(",v", "n") !=# nr2char(96) . "[v" . nr2char(96) . "]" | cquit | endif' \
-c 'if maparg("jk", "i") !=# "" | cquit | endif' \ -c 'if maparg("jk", "i") !=# "" | cquit | endif' \
-c 'if maparg("<C-s>", "n") !=# "" || maparg("<C-s>", "i") !=# "" | cquit | endif' \ -c 'if maparg("<C-s>", "n") !=# "" || maparg("<C-s>", "i") !=# "" | cquit | endif' \
-c 'if maparg("<C-h>", "n") !=# "" || maparg("<C-j>", "n") !=# "" || maparg("<C-k>", "n") !=# "" || maparg("<C-l>", "n") !=# "" | cquit | endif' \ -c 'if maparg("<C-h>", "n") !=# "" || maparg("<C-j>", "n") !=# "" || maparg("<C-k>", "n") !=# "" || maparg("<C-l>", "n") !=# "" | cquit | endif' \