I'm new to vim (for the seventh time) so this may not be something that makes sense for vim style but: The command history in the command window has up-arrow mapped to history and this has been very helpful in learning, except that it does not seem to store commands that fail to execute in the history. Obviously, this is a bad configuration choice for someone trying to learn from mistakes. Is there a way to force it to remember the failed commands, in the sense that they can be recalled with the up-arrow?

FYI, I am using MacVim with Janus extensions.

有帮助吗?

解决方案

What kind of error are you talking about? :s/foo/bar is always recorded into history, even if there was no foo on the current line and you get E486.


As a side note, if you use Ex commands a lot you might be interested in the Command line window, invoked by q:, that you can navigate and edit just like any other window. It's really great.

Also, drop Janus as soon as possible! That pile of crap is the absolute worst thing to install when learning to use Vim. Seriously.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top