tags:

views:

63

answers:

2

In Xcode when editing either an implementation or header file there is a shortcut key to quickly switch to its counterpart. Can this be done in vi?

+6  A: 

In Vim, you can use the A plugin. I have no idea about Vi though.

Thanh DK
+3  A: 

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.

thomasrutter