make vim plugin with elixir
TRANSCRIPT
Make vim pluginwith elixir
@marocchino
Want to make simple plugin
1234 |> Integer.to_string(16) |> String.duplicate(2)
String.duplicate(Integer.to_string(1234,16), 2)
https://github.com/marocchino/pipe_converter
こいう地味な砂上が割とあったので、プラグイン化したいと思って始めました。
でもこれelixirでしか使えないしなるべくelixirにしたかったんですけど
Supported langs• ruby
• python
• lua
• perl
• mzscheme
• … no elixir or erlang
Steps
• Make shell script
• Wrap script with viml
Make shell script
Mix• Rubygems + bundler + rake in Elixir
• $ mix new project_name
• ref: https://elixirschool.com/jp/lessons/basics/mix/
escript• CLI interface for elixir, erlang
• ref: https://elixirschool.com/jp/lessons/basics/mix/
Wrap script with VIML
vim plugin