Restore command-line Ctrl-P and Ctrl-N

This commit is contained in:
m1ngsama 2026-05-13 14:48:28 +08:00
parent ff0de570de
commit 2eaa7cf078
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