DEV Community

Discussion on: What's your favorite Vim trick?

Collapse
 
pbnj profile image
Peter Benjamin (they/them)

NeoVim has a "preview" functionality when you're doing substitutions.

First: set inccommand=split
Then, enjoy incremental highlighting of the text that will be impacted by any substitutions until you hit [ENTER]: :%s/foo/bar/g