c - How to go all reference of a text in whole project using vim -



c - How to go all reference of a text in whole project using vim -

i know simple question , there huge source of info not able find solution question.

i have tried cscope , got references 1 time in file not find way go go next occurrence.

i know utilize of ctrl+] ctags not want.i want go reference of text 1 1 .

like when want alter prototype of function , want go 1 one.

hope there way it.

you looking :tnext , :tprevious.

read next help topics:

:help tags :help ctags :help cscope

but here generic "search/replace in project" method…

search string in whole project , list matching lines in quickfix window:

:vim foo **/*.py | cw

record alter in simple macro:

qq ciwbar<esc> :cnext<cr> q

repeat alter every match in list:

@q @@ @@ …

skipping irrelevant matches :cnext.

and one…

open new tab:

:tabnew<cr>

populate local argument list files contain search pattern:

:arglocal `grep -rl foo *.js`<cr>

perform global search/replace on every file in local argument list

:argdo %s/foo/bar/gc<cr> yyyynnnyyy…

c linux vim

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -