On 8/2/06, John Orr <[EMAIL PROTECTED]> wrote:
When you type a command in vim that results in text scrolling up the screen - 
eg :messages or :registers, you will be hit by one of two comments:
Press ENTER or type command to continue

OR

-- More --

depending upon whether there are more lines to display.  Often, I want to good 
way to immediately go back to editing from either of these situations.

To quit the "more" situation, pressing "q" seems to be a good option.  It will also 
appear to work for the "Press ENTER or type a command" situation, in that it appears to be a 
command which in turn clears the text.

However, in the "Press ENTER" situation, that q will be remembered as the start 
of a command.

How about remapping normal-mode q to nop:
      :nmap q <nop>
Then you can use q safely for both 'Press Enter' prompt and for 'More' prompt.
Does this help ?

Yakov

Reply via email to