You have a few options to replicate this functionality in vim:
- vim8 supports this out of the box with incsearch
- inccommand in neovim
- if you’re not using neovim or are stuck on an older version of vim, you can use the plugin traces.vimvim-over: https://github.com/markonm/traces.vimhttps://github.com/osyo-manga/vim-over