只需要在vim的配置文件中设置:
nmap <F4> :lv /<c-r>=expand("<cword>")<cr>/ **/*.py<cr>:lw<cr>
nmap <F4> :lv /<c-r>=expand("<cword>")<cr>/ **/*.py<cr>:lw<cr>