What does:% S do in vim?

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

:%S/FOO/BAR/ 

Note the uppercase S instead of the more appropriate S

Of course, this will not replace my FOO. This is clear. However, vim split the window into two windows, both with the same buffer.

Unfortunately, I could not find :help in this behavior. So, can someone explain what uppercase should do :%S and where can I find help?

+6
source share
1 answer
 :h :S 

 :[N]Sexplore[!] [dir]... Split&Explore current file directory *:Sexplore* 
+7
source

Source: https://habr.com/ru/post/892099/


All Articles