Requires vim7.4
Originally by Yakov Lerner and put on GitHub by Henrik Nyh to have it there in a Pathogen-friendly format. Majorly rewritten by Otto Modinos.
See the original plugin page at vim.org.
This plugin redefines 6 search commands (/,?,n,N,*,#). At every
search command, it automatically prints>
"At match #N out of M matches".
>
-- the total number of matches (M) and the number(index) of current
match (N). This helps to get oriented when searching forward and
backward.
There are no new commands and no new behavior to learn.
Just watch the bottom line when you do /,?,n,N,*,#.
Is this plugin too slow for you? Do you want more (or less) features? Here're some other plugins that do (or can do) the same thing:
- On Vim 8.1.1270+, you can use
:set shortmess-=S
- google/vim-searchindex; very fast and unobtrusive
- osyo-manga/vim-anzu; tons of features
- romainl/vim-cool; initally just for disabling the highlighting of matches after a seach, now also show an index
- lacygoill/vim-search; meant for personal use but can be used by everyone