plugins - Vim Search with "Current Occurrence / Total Occurrences" Shown at the Bottom -
this question has answer here:
- show count of matches in vim 8 answers
i using */# search next/previous occurrence of variable or function under cursor. there way display current occurrence , total occurrences of search result @ bottom of vim. example, 1 of 5 when search word in chrome.
it doesn't need list occurrences in window, guess should able know occurrences in background.
you can use vimgrep open list in bottom
:vimgrep foo % :copen :cclose close list.
you can use :cnext or :cprevious navigate in list of results.
% alias current file name & path.
you can use option grepprg , command :grep use system grep.
as mentioned sehe, lgrep or lvimgrp possible variable.(with associated lopen, lclose,...)
have @ :help grep see options better you.
Comments
Post a Comment