sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

CurtineIncSw.vim : Switch from *.c* to *.h* and vice versa

 script karma  Rating 51/15, Downloaded by 104    Comments, bugs, improvements  Vim wiki

created by
Eric Curtin
script type
Some assumpions:

  filename for header and implementation is identical excluding the directory
    and extension (foo.c -> foo.h supported, foo.c -> bar.h not supported)
  user opens files from base of repo
  repo contains both implementation and header files

Based on these assumptions, you don't need to reconfigure when you switch
between repos, provided the headers and implementation are all in the same repo.

install details
Copy CurtineIncSw.vim into your ~/.vim/plugin directory. Or :source CurtineIncSw.vim.

You can set a keyboard shortcut if you want by placing something like:

  map <F5> :call CurtineIncSw()<CR>

in your .vimrc

with Vundle

Add Plugin ericcurtin/CurtineIncSw.vim to your plugin definitions in your .vimrc

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
CurtineIncSw.vim 0.2 2017-03-30 7.4 Eric Curtin Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo