vim-fswitch
vim-fswitch copied to clipboard
Double file extensions
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?
I believe that the option fswitchfnames can help you.