Restore command-line Ctrl-P and Ctrl-N (#47)

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

View file

@ -110,9 +110,6 @@ nnoremap <leader>cd :lcd %:p:h<cr>:pwd<cr>
nnoremap <leader>v `[v`]
cnoremap <C-p> <Up>
cnoremap <C-n> <Down>
nnoremap <M-j> :m .+1<CR>==
nnoremap <M-k> :m .-2<CR>==
vnoremap <M-j> :m '>+1<CR>gv=gv

View file

@ -209,6 +209,7 @@ check_vim() {
-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