vim-projectionist-elixir


Ⅰ. 插件描述

Vim file navigation for Elixir projects

Ⅱ. 基本信息

创建日期:  2016-11-01
使用用户:  13
Github星:  11
插件作者:  andyl

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'andyl/vim-projectionist-elixir'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'andyl/vim-projectionist-elixir'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'andyl/vim-projectionist-elixir'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/andyl/vim-projectionist-elixir

Ⅳ. 文档说明

# vim-projectionist-elixir

Vim file navigation for Elixir projects

This plugin supplies quick-nav links for Elixir projects. **Alternate File
Navigation** gives commands to jump between an Elixir source file and it's
associated test. Related File Navigation gives commands to jump between
Phoenix controllers, views and templates.

Install using Plug in your .vimrc:

Plug 'tpope/vim-projectionist'
Plug 'c-brenn/fuzzy-projectionist.vim'
Plug 'andyl/vim-projectionist-elixir'

See also:

Alternate File Navigation

'Alternates' are the source code and test file - a one-to-one relationship.

:A - open the 'alternate' file

:AS - open the 'alternate' file in a split window

:AV - open the 'alternate' file in a vertical split window

:AT - open the 'alternate' file in another tab

Related File Navigation

In Phoenix projects, you can jump between 'related' files (controllers /
templates / views).

There are two types of relations:
1) one-to-one relationship, eg controller -> view
2) one-to-many relationship, eg controller => template

For one-to-one relationships, use the Projectionist E commands:

  • :Econtroller
  • :Eview

For one-to-many relationships, use the Fuzzy-Projectionist F commands:

  • :Ftemplate

Working with Umbrella Projects

This plugin is going to work with mix projects where source
files are stored under the lib directory and corresponding test
files are stored under test.

To work with umbrella projects, you'll need to put a custom
.projections.json file in the root directory of your umbrella
project.

To quickly generate a .projections.json file for an umbrella
project, see the ex_projections project.

添加新评论