If I have multiple files all with the same name (except, of course, the extension), is there a way of making bash auto-complete to a specific extension when I open them from the terminal with a text editor?
In particular, I am using latex with vim, and upon compiling one gets log files, aux files etc, and so I need to first type
vim w, auto-complete to
vim work., then put in another t and auto-complete to
vim work.tex. It seems like there should be a way of telling bash to got straight to the tex file.
I imagine this is not going to be vim specific, but I am not 100%, so I have left the tag in.