mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-14 04:51:08 +08:00
Move last-change selection to leader mapping (#45)
This commit is contained in:
parent
fd081a2397
commit
ff0de570de
2 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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' \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue