I found a useful map at the include-search ([I) help.
map <leader>1 [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
This opens the file found on the line I type (after [I displaying all assurances of current line). I don't understand the syntax, I want to modify- opening the file in new tab.
[I
followed by<nr>[<Tab>
which is the same as<nr>[<C-i>
. Near that help page, we can find<C-w>i
for splitting and:ijump
which allows more control. If you really want a new tab, try:execute 'tab isplit' nr expand('<cword>')
orexecute 'normal!' nr."\<C-w>i\<C-w>T"
:help
:) for example,:help expand()
and:help :normal
have the answers you are looking for.