padde / vimix

Vimux with Elixir Mix Integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 session. Key mappings are disabled by default, but can easily be enabled by setting the following in your .vimrc:

let g:vimix_map_keys = 1

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 Map Vim Command Mix Command
<Leader>mT VimixTestAll test
<Leader>mt VimixTestCurrentFile test <test file>
<Leader>mc VimixCompile compile
<Leader>mC VimixClean clean
<Leader>mdc VimixDepsCompile deps.compile
<Leader>mdg VimixDepsGet deps.get
<Leader>mds VimixDepsStatus deps
<Leader>mdU VimixDepsUpdate deps.update
<Leader>mL VimixLocal local
<Leader>mr VimixPromptRun <prompt for mix command>
<Leader>mm VimuxRunLastCommand Run 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

About

Vimux with Elixir Mix Integration


Languages

Language:Vim Script 100.0%