René Nyffenegger
René Nyffenegger

Reputation: 40603

What does :%S do in vim?

As I tried to globally replace FOO with BAR in a vim buffer, I accidentally typed

:%S/FOO/BAR/

Note the uppercase S instead of the more suitable s.

Of course, it wouldn't replace my FOOs. That's understandable. Yet, vim split the window into two windows, both holding the same buffer.

Unfortunately, I was unable to find any :help on this behaviour. So, can someone explain what the uppercase :%S is supposed to do and where I can find help on it?

Upvotes: 6

Views: 2857

Answers (1)

Don Reba
Don Reba

Reputation: 14061

:h :S

:[N]Sexplore[!] [dir]... Split&Explore current file's directory *:Sexplore*

Upvotes: 7

Related Questions