counterpoint.vim : Easily navigate file counterparts.
| script karma
Downloaded by 43
Comments, bugs, improvements
script versions (upload new version)
|Use Counterpoint to easily cycle between file counterparts (.h, .cpp, .osx.mm, win.cpp, and so on) via the :CounterpointNext and :CounterpointPrevious commands.
Counterpoint works by taking the current file, determining the root file name, and switching between files with the same root but different extensions. This allows Counterpoint to operate on multi-level file extensions instead of just the traditional .h and .cpp pairs, and allows it to cycle in a natural way without any configuration beyond mapping at least one of the command commands in your .vimrc, perhaps like so:
nnoremap <leader>a :CounterpointNext
For feature requests, bugs, better documentation and the latest version, check out the GitHub page:
|Use Pathogen (http://www.vim.org/scripts/script.php?script_id=2332), or extract into ~/.vim.|
Click on the package to download.
ip used for rating: 184.108.40.206
||Adds support for user search paths, allowing Counterpoint to cycle between counterparts located outside the current file's directory (useful if source and headers are in sibling directories).