On Tue, November 13, 2012 22:08, Andy Wokula wrote:
> Am 22.10.2012 17:12, schrieb Benjamin Fritz:
>> The help for gn and gN says that gn searches "forward...like with n"
>> and that gN "searches backward, like with N". But when you do a
>> backward search with ? instead of /, n moves the cursor backwards, and
>> N moves it forwards. gn and gN do not behave accordingly, they
>> continue to move forward with gn and backwards with gN. I think the
>> behavior would be more intuitive if it accounted for the search
>> direction like n and N, but at the very least, a documentation update
>> is needed.

I really hope, this is not going to be "fixed". The behaviour of
n/N depending on the inital search direction is one of my greatest
annoyances of Vim.

> One more small inconsistency:
>
> When there is no previous search string, both  n/N and gn/gN give
> an error message "E35: No previous regular expression" (ok),
> but in addition, gn/gN beeps (not ok, n/N doesn't beep).

It doesn't say gn/gN behaves exactly as n/N.

regards,
Christian

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui