mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-13 20:41:04 +08:00
Move visual selection search to leader mapping (#49)
This commit is contained in:
parent
2aa28304ca
commit
ea8c3054e1
2 changed files with 4 additions and 10 deletions
|
|
@ -132,7 +132,7 @@ vnoremap > >gv
|
||||||
nnoremap n nzzzv
|
nnoremap n nzzzv
|
||||||
nnoremap N Nzzzv
|
nnoremap N Nzzzv
|
||||||
|
|
||||||
vnoremap // y/\V<C-r>=escape(@",'/\')<CR><CR>
|
vnoremap <leader>/ y/\V<C-r>=escape(@",'/\')<CR><CR>
|
||||||
|
|
||||||
if get(g:, 'chopsticks_enable_ctrl_s_save', 0)
|
if get(g:, 'chopsticks_enable_ctrl_s_save', 0)
|
||||||
nnoremap <silent> <C-s> :w<CR>
|
nnoremap <silent> <C-s> :w<CR>
|
||||||
|
|
|
||||||
|
|
@ -202,15 +202,9 @@ check_vim() {
|
||||||
grep -Fq 'Open that filetype and run :LspInstallServer once.' "$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 \
|
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 'let last_change_map = nr2char(96) . "[v" . nr2char(96) . "]"' \
|
||||||
-c 'if maparg("gV", "n") !=# "" | cquit | endif' \
|
-c 'if maparg("0", "n") !=# "" || maparg("0", "v") !=# "" || maparg("Y", "n") !=# "" || maparg("Q", "n") !=# "" || maparg("<Space>", "n") !=# "" || maparg("//", "v") !=# "" || maparg("gV", "n") !=# "" || maparg("jk", "i") !=# "" || maparg("<C-s>", "n") !=# "" || maparg("<C-s>", "i") !=# "" || maparg("<C-h>", "n") !=# "" || maparg("<C-j>", "n") !=# "" || maparg("<C-k>", "n") !=# "" || maparg("<C-l>", "n") !=# "" || maparg("<C-p>", "n") !=# "" || maparg("<C-p>", "c") !=# "" || maparg("<C-n>", "c") !=# "" | cquit | endif' \
|
||||||
-c 'if maparg(",v", "n") !=# nr2char(96) . "[v" . nr2char(96) . "]" | cquit | endif' \
|
-c 'if maparg(",/", "v") !~# "escape" || maparg(",v", "n") !=# last_change_map || maparg(",ff", "n") !~# "SmartFiles" | 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-h>", "n") !=# "" || maparg("<C-j>", "n") !=# "" || maparg("<C-k>", "n") !=# "" || maparg("<C-l>", "n") !=# "" | cquit | endif' \
|
|
||||||
-c 'if maparg("<C-p>", "n") !=# "" | cquit | endif' \
|
|
||||||
-c 'if maparg("<C-p>", "c") !=# "" || maparg("<C-n>", "c") !=# "" | cquit | endif' \
|
|
||||||
-c 'if maparg(",ff", "n") !~# "SmartFiles" | cquit | endif' \
|
|
||||||
-c 'qa!' 2>&1
|
-c 'qa!' 2>&1
|
||||||
|
|
||||||
XDG_CONFIG_HOME="$EMPTY_XDG" vim -u NONE -i NONE -es -N \
|
XDG_CONFIG_HOME="$EMPTY_XDG" vim -u NONE -i NONE -es -N \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue