-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
n and N after reverse search with ? #470
Comments
i prefer the vis behavior |
In my opinion, since the search already wraps around by default, there is no need of |
On Sat, Jan 21, 2017 at 02:10:44AM -0800, Mitesh Shah wrote:
In my opinion, since the search already wraps around by default, there is no
need of ? at all.
For me there is.
If you work with bigger files (100MB+) it often happens that the string
you are searching for occurs hundreds of times in a file. You do not want
to cycle through all hits if you know that the particular hit you are
looking for is further up from your cursor position.
I have no problem with the current behaviour of vis though.
|
I would prefer it to be consistent with vim. |
erf wrote:
I would prefer it to be consistent with vim. It makes sense to me to use 'n' to search again in the same direction.
I would also prefer that it be internally consistent. ; and , both switch directions after using TtFf.
Why should there be a difference when searching across lines to searching within a line?
|
Like @aeosynth I prefer the current behavior for interactive usage. I like the fact that As far as inconsistencies are concerned It could probably be argued that the vim behavior is preferable for non-interactive usage (e.g. macros, mappings etc.) if you want to skip a couple of matches independent of the search direction. |
@martanne wrote:
As @xcko pointed out, vis is interally inconsistent with how it handles |
After doing a reverse search with ?, n goes to the next forward result, not the next result in reverse.
This is the opposite of vi/vim behaviour.
The text was updated successfully, but these errors were encountered: