Show search count in vim

To show &ldquo;search count&rdquo; message in the status bar when searching (ex: &ldquo;[13/37]&rdquo;): set shortmess-=S Or to perform a count on-demand: :%s/some-word//gn Credits to stackoverflow .