In Xcode when editing either an implementation or header file there is a shortcut key to quickly开发者_Python百科 switch to its counterpart. Can this be done in vi?
In Vim, you can use the A plugin. I have no idea about Vi though.
Here is a big long list of different ways of doing this: http://vim.wikia.com/wiki/Easily_switch_between_source_and_header_file
I like the "Single line solution" one best - their example works only if your .h and .c files are in the same directory.
精彩评论