Skip to content
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

Add gn command #403

Open
h908714124 opened this issue Aug 6, 2024 · 0 comments
Open

Add gn command #403

h908714124 opened this issue Aug 6, 2024 · 0 comments

Comments

@h908714124
Copy link

h908714124 commented Aug 6, 2024

Imho gn is important enough to be added in section "Search and replace".

gn                      Search forward for the last used search pattern, like
                        with `n`, and start Visual mode to select the match.
                        If the cursor is on the match, visually selects it.
                        If an operator is pending, operates on the match.
                        E.g., "dgn" deletes the text of the next match.
                        If Visual mode is active, extends the selection
                        until the end of the next match.
                        'wrapscan' applies.
                        Note: Unlike `n` the search direction does not depend
                        on the previous search command.

See also: http://vimcasts.org/episodes/operating-on-search-matches-using-gn/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant