is there a way to use the a.vim plugin to switch between .h, .cxx and .txx files? Alternatively, can you provide another solution? The idea is to automagically switch from .h -> .txx -> .cxx at the press of a key.
A Big Thanks to both of you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look for the lines in a.vim that contain
AddAlternateExtensionMapping. The first argument is the extension of the current file, the second is a list of extensions of the file you’d like to switch to with:A. They are listed in order of preference. In your case, you’d have to set it up so that it would go in a cycle.So now you go from .h to .txx if it exists or .cxx if it doesn’t.