docs/_posts/2020-01-28-manage-project-alternate-files.md
{{ page.date | date_to_string }}
<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->At first, when managing the SpaceVim project, every time you edited a module source file, you always need to pay attention to the following things:
In view of the above two points, the following requirements are derived:
At present, this plugin built into SpaceVim basically implements the above functions, in order to quickly jump between related files.
SpaceVim provides a built-in alternate file manager, the command is :A.
To use this feature, you can create a .project_alt.json file in the root of your project. for example:
{
"autoload/SpaceVim/layers/lang/*.vim": {"doc": "docs/layers/lang/{}.md"},
}
after adding this configuration, when edit autoload/SpaceVim/layers/lang/java.vim,
you can use :A doc switch to docs/layers/lang/java.md