Skip to content

Instantly share code, notes, and snippets.

@mentalisttraceur
Last active March 13, 2023 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mentalisttraceur/683a491dc6b6c893cb897795c7c492b6 to your computer and use it in GitHub Desktop.
Save mentalisttraceur/683a491dc6b6c893cb897795c7c492b6 to your computer and use it in GitHub Desktop.
zsh vi-like search
@mentalisttraceur
Copy link
Author

mentalisttraceur commented Oct 22, 2022

.zsh-vi-search makes vi-mode search commands work much more like they do in vi:

  1. searches work within commands too, not just across commands,
  2. n and N will continue the search forwards and backwards respectively, and
  3. / and ? have their vi-like directions of forwards and backwards, instead of the reversed ones that vi-mode in zsh defaults to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment