andreypopp / julia-repl-vim

Julia REPL plugin for vim/neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

julia-repl-vim

Julia REPL plugin for vim/neovim

Screen.Recording.2022-05-03.at.13.12.45.mov

Usage

Install the support Julia package:

using Pkg
Pkg.add(url="https://github.com/andreypopp/julia-repl-vim")

Now when you start julia you can do:

using REPLVim
@async REPLVim.serve()

this starts a REPL server (default port 2345) the editor can connect to.

to start on a specific port run:

@async REPLVim.serve(<portnumber>)

In your .vimrc:

Plug 'andreypopp/julia-repl-vim'

to install the editor plugin.

In editor to connect to the REPL server:

:JuliaREPLConnect <portno>

Now <leader>e will eval the current line or the current selection in REPL as if you typed it directly.

REPL completions are also available,but not enabled by default. Enable with

let g:julia_repl_complete=1

in your vimrc

The <C-x><C-o> omni completion will query REPL for completions.

Credits

REPL server code is based on RemoteREPL.jl project.

About

Julia REPL plugin for vim/neovim

License:MIT License


Languages

Language:Julia 49.3%Language:Lua 37.7%Language:Vim Script 13.0%