Não posso fornecer prova de qualquer tipo, mas Ctrl - P e Ctrl - N pertencem ao emacs de associações de teclas, em contraste com vi de ligações ( bindkey -e vs. bindkey -v ). Sob essa premissa, você deve procurar uma explicação em emacs .
emacs 'informa
There are several ways you can do this. You can use the arrow keys, but it's more efficient to keep your hands in the standard position and use the commands C-p, C-b, C-f, and C-n. These characters are equivalent to the four arrow keys, like this:
- Previous line, C-p
- Backward, C-b
- Forward, C-f
- Next line, C-n
Parece inconveniente para o usuário comum vi , mas faz todo o sentido.