improve "search under cursor" (gf) in vim
vim
Solution
Try using `suffixesadd` instead of `includeexpr`:
:set suffixesadd=.vs,.sdpv
Problem
I'm reading Verilog code where I would like to open `unit1.vs` but the code contains: ``` unit1 unit1_instance {...} ``` I can do this by adding: ``` includeexpr=substitute(v:fname,'\(.*\)','\1.vs','i') ``` in vimrc and using gf. I now have another `unit2.sdpv` which is instantiated like unit1. How can I extend `includeexpr` to search for `file.vs` and `file.sdpv`?