In the command minibuffer (Pardon my emacs, I don't know what it's actually called), C-p
and C-n
go to the previous and next command in my history. Is there a way to make them behave like M-n
and M-p
in tcsh
? Those will take you to the previous and next commands matching the current prefix. (The prefix being everything before the current cursor position). If that isn't possible, can vim emulate the zsh
behavior of scrolling through options beginning with the same command / word?
If I do:
:edit ~/.vimrc
:read !ls
:e
and then hit <c-p>
, I'd like it to complete :edit ~/.vimrc
not :read !ls