Skip to content
Alternate Files quickly (.c --> .h etc)
VimL
Find file
Latest commit 2cbe946 Jun 7, 2007 Mike Sharpe committed with Version 2.18
Recent versions since 2.16 broke user defined alternate specifications. This patch fixes that.
Failed to load latest commit information.
plugin Version 2.18 Nov 6, 2010
README Version 1.0 Nov 6, 2010

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=31

A few of quick commands to swtich between source files and header files quickly.

:A switches to the header file corresponding to the current file being edited (or vise versa)
:AS splits and switches
:AV vertical splits and switches
:AT new tab and switches
:AN cycles through matches
:IH switches to file under cursor
:IHS splits and switches
:IHV vertical splits and switches
:IHT new tab and switches
:IHN cycles through matches
<Leader>ih switches to file under cursor
<Leader>is switches to the alternate file of file under cursor (e.g. on  <foo.h> switches to foo.cpp)
<Leader>ihn cycles through matches

E.g. if you are editing foo.c and need to edit foo.h simply execute :A and you will be editting foo.h, to switch back to foo.c execute :A again. 

Can be configured to support a variety of languages. Builtin support for C, C++ and ADA95
Something went wrong with that request. Please try again.