Hi, I'm using the a.vim[1] plugin to allow easy switching between C/C++ header and source files, but have recently hit a problem with a specific common directory structure at work, along the lines of:
top ---include ------xxxxx ---------test.h ---src ------test.cpp In the above case the xxxxx directory within include has a name that doesn't follow any convention that can be easily gleaned from the file path, and there are many projects following this structure with different values of xxxxx. I tried using a wildcard by adding "sfr:../include/*,sfr:../../src" to g:alternateSearchPath. With this setup, switching from test.h to test.cpp is standard stuff and works fine, but going from test.cpp to test.h works ONLY when I have previously switched from test.h to test.cpp. I tried to dig at the code but haven't got much further than determining that the script caches switches made, which must explain the above behaviour. It does also seem to use findfile() in places, which the help suggests would accept wildcards. So here I am on the off chance that someone else has had the same problem and managed to work around it. Any clues welcome. Regards, Keffin. [1]: http://www.vim.org/scripts/script.php?script_id=31 -- 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
