Apply custom keymaps to all prompt modes and document it.
Merge pull request #8439 from blakejohnson/repl-doc

Apply custom keymaps to all prompt modes and document it.