Monday, February 8, 2016

Re: go to to file (gf) without extention

On 2016-02-08 03:41, zismad wrote:
> hi guys,
>
> when using gf vim can open a file with the same name in the current
> directory. I use vim for verilog files editing in Verilog syntax
> one can see something line this
>
> <module_name> <instance_name> (.....);
>
> I want to be able to open the <module_name>.v file in current
> directory when cursor is on the <module_name< part of that line.
>
> How can I get that ?

You want

:setlocal suffixesadd=.v

either manually or as an autocmd when you load a verilog file.

-tim


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: