derekwyatt / vim-fswitch

Vim plug for switching between companion source files (e.g. ".h" and ".cpp")
179 stars 57 forks source link

Double file extensions #14

Open godbyk opened 8 years ago

godbyk commented 8 years ago

I use the fswitch plugin all the time and love it.

I occasionally have a Blah.h.in file (which will be partially generated by the build system) which has a corresponding Blah.cpp file. Using autocmd BufEnter *.h.in let b:fswitchdst = 'cpp' lands me in a buffer named Blah.h.cpp instead of the expected Blah.cpp.

Is there any way to suggest to fswitch that it may need to do more work to get the proper basename?

slycelote commented 8 years ago

I believe that the option fswitchfnames can help you.