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 49/13, Downloaded by 69    Comments, bugs, improvements  Vim wiki

created by
Eric Curtin
 
script type
utility
 
description
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.

https://github.com/ericcurtin/CurtineIncSw.vim
 
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
 

rate this script Life Changing Helpful Unfulfilling 
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: 23.20.214.5

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