# Evaluating code inside vim?

**URL:** <https://forum.elixirforum.com/t/evaluating-code-inside-vim/39651>\
**Category:** Questions\
**Tags:** vim, code-editors, neovim\
**Created:** [May 13, 2021, 2:23am UTC](https://forum.elixirforum.com/t/evaluating-code-inside-vim/39651 "2021-05-13T02:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron-price](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aaron-price/32/7745_2.png) [@aaron-price](https://forum.elixirforum.com/u/aaron-price)\
**Post date:** [May 13, 2021, 2:23am UTC](https://forum.elixirforum.com/t/evaluating-code-inside-vim/39651/1 "2021-05-13T02:23:57Z")

</div>

I’m hoping someone can suggest a vim plugin (well, neovim) which might allow me to evaluate a function from the editor, as if I’m doing it from a repl.

For example when I write clojure, I have the excellent ‘conjure’ plugin. I use

> \rr

to recompile and

> \ee

to evaluate whichever S-expression I’m on at the time. At no point do I have to switch between vim and a separate terminal window.

Does something like that exist in elixir?

---

<div class="post-metadata">

**Author:** ![keathley](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/keathley/32/2652_2.png) [@keathley](https://forum.elixirforum.com/u/keathley)\
**Post date:** [May 13, 2021, 2:54am UTC](https://forum.elixirforum.com/t/evaluating-code-inside-vim/39651/2 "2021-05-13T02:54:29Z")

</div>

It may not be exactly what you’re wanting, but I use vim-slime and run an iex shell in either nvim’s terminal or in tmux.

---

<div class="post-metadata">

**Author:** ![aaron-price](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aaron-price/32/7745_2.png) [@aaron-price](https://forum.elixirforum.com/u/aaron-price)\
**Post date:** [May 13, 2021, 3:11am UTC](https://forum.elixirforum.com/t/evaluating-code-inside-vim/39651/3 "2021-05-13T03:11:25Z")

</div>

Thanks @keathley that looks perfect!
