Having to re-compile Vim with support for a language is one of its bigger
drawbacks. It's fine for a common language like Python, but the more
gets, the less likely it is that your plugin will be of any use to other
people. You should take a look at Neovim:
Neovim is a fork of Vim which aims to bring the code up to modern
is not a rewrite, so all existing plugins should work and the Neovim
keep up with new Vim patches.
One of the innovations in Neovim is its remote API. In Vim you have to
Vim with support for a foreign language, but in Neovim that support can be
retrofitted to the editor as an external process. So for example, if you
to write Neovim plugins in Python you install the Python client via pip.
you want to write plugins in Racket you install my Racket client:
You could then write an "evaluator" plugin in Racket like this:
;; Save in a file like '~/.config/nvim/rplugin/racket/eval.rkt'
(define str (vector-ref args 0))
(call-with-input-string str (λ (in) (eval (read in))))))
This won't actually work with an argument like "(+ 2 3)", Racket complains
the '+ is an undefined identifier, but that's a problem on the Racket side
don't know that much about Racket yet to be able to do eval magic), not on
editor side. The RacketEval function is like any other Neovim function,
that it offloads the work to an external process behind the scene, but the
never notices that.
The Racket client is still under development, I have not yet committed
the public interface and I need to take care of some edge cases when
goes wrong. Other than that, the client fully works.
On Sunday, December 17, 2017 at 2:33:26 PM UTC+1, gokceh...@gmail.com wrote:
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.