开发者

What does :%S do in vim?

开发者 https://www.devze.com 2023-03-17 08:01 出处:网络
As I tried to globally repla开发者_C百科ce FOO with BAR in a vim buffer, I accidentally typed :%S/FOO/BAR/

As I tried to globally repla开发者_C百科ce 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?


:h :S

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

精彩评论

暂无评论...
验证码 换一张
取 消