Map to display number of matches for the last search

1 Point

Seth House Seth House

9 years ago

Outputs something like "23 matches on 21 lines". Invoke with #

nmap <leader># :%s:<C-R>/::gn<cr>

ReneFroger

ReneFroger 9 years ago

This link: http://www.vim.org/scripts/script.php?script_id=1682 is doing that automatically, and is more useful.

yang-ling

yang-ling 9 years ago

@ReneFroger: nice plugin!