1

I'm new to VimScript and trying to learn how to construct patterns.

Is there a Vim plugin like RegExr.com for testing patterns?

1
  • 1
    what is wrong with using :set incsearch and just trying it out interactively? Commented Jul 28, 2023 at 7:07

2 Answers 2

4

There is a very simple way, for which you do not need any plugin. Open a file with some content, turn on :set incsearch and/or :set hlsearch and try it out interactively with Vim.

That's how you learn best, using the tools that you have available.

1

The trace provide you a preview of the substitution and privide a good help to learn regular expression patterns.

If you are using Neovim you could also be interested by hypersonic

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.