Vim Tips Wiki
(Created page with " Nice plugin, but it doesn't seem to work correctly when there are three files: i.e. foo.h foo.inl and foo.cpp")
 
No edit summary
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  +
{{ScriptComments|a: switch between alternate files quickly (.c --> .h etc)}}
   
  +
==Comments==
 
Nice plugin, but it doesn't seem to work correctly when there are three files:
 
Nice plugin, but it doesn't seem to work correctly when there are three files:
   
 
i.e. foo.h foo.inl and foo.cpp
 
i.e. foo.h foo.inl and foo.cpp
  +
  +
Thanks for your contribution.
  +
But I have a challenge in switching between header files and source files when they are in directories such as src/ and include/.
  +
  +
If I'm editing foo.c in src/, it will look for foo.h in src. But I have foo.h in include/. Can you please help.
  +
  +
Thanks,
  +
Shakthi
  +
  +
==Bugs==
  +
This is a great plugin. The only drawback is that it does not handle folders with comma's in it, unfortunately. For example, if I'm editing src,/foo.c, and want to switch to src,/foo.h, then :A does not work.
  +
  +
Thanks,
  +
Bart

Revision as of 16:37, 10 October 2013

Use this page to discuss script 31 a: switch between alternate files quickly (.c --> .h etc)

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

Nice plugin, but it doesn't seem to work correctly when there are three files:

i.e. foo.h foo.inl and foo.cpp

Thanks for your contribution. But I have a challenge in switching between header files and source files when they are in directories such as src/ and include/.

If I'm editing foo.c in src/, it will look for foo.h in src. But I have foo.h in include/. Can you please help.

Thanks, Shakthi

Bugs

This is a great plugin. The only drawback is that it does not handle folders with comma's in it, unfortunately. For example, if I'm editing src,/foo.c, and want to switch to src,/foo.h, then :A does not work.

Thanks, Bart