who is this question may seem silly, but I'm stuck. I write gnuradio application in some python file. In VIM I try to open a file that is imported, for example:
from gnuradio import audio
Let's say I use the function:
audio.sink()
It is possible in vim to quickly get content of
sink()
function? In the manner of command CTRL-] of ctags.
P.s. using Ctags navigation to audio.sink()
return me error: tag not found: sink
. Using Ctags i can navigate only to local definitions ( not imported ). I check
ctags --list-kinds=python
import option is enabled.
Inside tags
file i see:
audio fm_receiver.py /^from gnuradio import audio$/;" i
This works fairly quickly, but not exactly like you'd like. You add this line to your .vimrc
nnoremap <C-k> :!ctags -aR /usr/lib/python*/site-packages/<cword><cr>
Then you can hover over the package name gnuradio
and press CTRL+K to execute the command which will append that packages source files to your local tags file (vim's default as well). Then you can CTRL+] over the sink
keyword to get the function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With