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? 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

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .