我正在阅读我要打开的Verilog代码,unit1.vs但代码包含:
unit1 unit1_instance {...}
Run Code Online (Sandbox Code Playgroud)
我可以通过添加:
includeexpr=substitute(v:fname,'\(.*\)','\1.vs','i')
Run Code Online (Sandbox Code Playgroud)
在vimrc和使用gf.
我现在有另一个unit2.sdpv像unit1一样被实例化.我怎样才能扩展includeexpr到搜索file.vs和file.sdpv?
vim ×1