vim-gf-user
vim-gf-user copied to clipboard
re-define priority to extension execution order:
[priority < 1000] --> built-in |gf| --> [priority >= 1000]
Would you mind describing why this change is useful?
some ftplugin should be tried before norm! gf
https://github.com/zhaocai/vim-gf-python
I couldn't understand your example. It seems to me that there is no reason to change the current order even in your example. What is the problem you encountered with the current order?
support you have
import some_module
and you also have a file named some_module.py
.
The current order would try to open some_module.py
first.
I still don't agree your opinion:
- If you are developing
some_module
, it doesn't matter which method — the built-ingf
or your vim-gf-python — is invoked. You'd like to open thesome_module.py
. - If you are not developing
some_module
, it seems to be a bad habit to name a file which conflicts with an existing module.