Skip to content

Instantly share code, notes, and snippets.

@webgtx
Last active January 22, 2025 06:05
Show Gist options
  • Save webgtx/634f76ea316db0b8733ea6abcac5368b to your computer and use it in GitHub Desktop.
Save webgtx/634f76ea316db0b8733ea6abcac5368b to your computer and use it in GitHub Desktop.
How to search pattern within selected area/text in VIM
  1. First, visually select the area you want to search in.
  2. Enter the normal mode.
  3. Then hit / and type this in the search bar:
\%Vpattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment