vimix


Ⅰ. 插件描述

Vimux with Elixir Mix Integration

Ⅱ. 基本信息

创建日期:  2013-12-02
使用用户:  12
Github星:  30
插件作者:  Aaron Spiegel

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'spiegela/vimix'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'spiegela/vimix'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'spiegela/vimix'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/spiegela/vimix

Ⅳ. 文档说明

# Vimix

vimux with Elixir mix integration

Installation

Put the contents of this directory into your pathogen bundle.

Usage

Vimix provides a number of available commands for common Mix tasks, so that you never have to leave your Vim

  1. Key mappings are disabled by default, but can easily be enabled by setting the following in your .vimrc:
let g:vimix_map_keys = 1

If you'd like run your tests in the context of IEx or change the way tests are run in other ways, you can customize the mix command like so:

let g:vimix_mix_command = "iex -S mix"

The default is just mix.

Features

  • Changes Vimux runner directory to your mix project root (looks for the mix.exs file)
  • Detects correct test file for elixir source files

Commands

Here are the key mappings for your reference:

Key MapVim CommandMix Command
<Leader>mTVimixTestAlltest
<Leader>mtVimixTestCurrentFiletest <test file>
<Leader>mlVimixTestCurrentLinetest <test file>:<test line>
<Leader>mcVimixCompilecompile
<Leader>mCVimixCleanclean
<Leader>mdcVimixDepsCompiledeps.compile
<Leader>mdgVimixDepsGetdeps.get
<Leader>mdsVimixDepsStatusdeps
<Leader>mdUVimixDepsUpdatedeps.update
<Leader>mLVimixLocallocal
<Leader>mrVimixPromptRun<prompt for mix command>
<Leader>mmVimuxRunLastCommandRun last command again

Requirements

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

添加新评论