This is a repo and workflow for a simple Elixir scratchpad for Vim.
- Create a file in the root of this directory named
edebug.exs
. This is your scratchpad. - Use Vim.
- Install sjl's Clam.vim. Thanks, Steve!
- Stick this (or something like it) in your
.vimrc
:
au BufWritePost edebug.exs execute "normal! :Clam elixir edebug.exs\<cr>"
I map e
in my Fish config,
and whenever I save the scratchpad (edebug.exs
), a buffer updates with the result of running through Elixir. The
buffer remains until I close it, and it'll update each time I save the scratchpad, without losing focus of the
scratchpad buffer: