Re-enable julia REPL

This commit is contained in:
Akemi Izuko 2022-09-27 23:30:20 -06:00
parent 9868caafe1
commit fc10dee99a
No known key found for this signature in database
GPG key ID: 905D444F6A5E4BE4
2 changed files with 17 additions and 1 deletions

View file

@ -2,8 +2,22 @@
iabbrev <buffer> #! #!/usr/bin/env julia
iabbrev <buffer> initmodeline # vim: set ft=julia ff=unix:
" Set REPL commands ====
" IPython cell ===========================================
" Enables iPython Cell to copy commands into a julia REPL via tmux
let g:ipython_cell_delimit_cells_by = 'tags'
let g:ipython_cell_tag = ['##', '# %%', '#%%', '# <codecell>']
let g:ipython_cell_highlight_cells = 1
let g:ipython_cell_run_command = 'Base.run(`clear`); include("{filepath}")'
let g:ipython_cell_cell_command = 'include_string(Main, clipboard())'
" REPL hotkeys. Overwrites default slime studio stuff
" Run entire file from top to bottom
nnoremap <buffer> <leader>f :IPythonCellRun<CR>
" Run current cell
nnoremap <buffer> <leader>r :IPythonCellExecuteCell<CR>
nnoremap <buffer> <leader>e :IPythonCellExecuteCellJump<CR>
" Insert block seperator above
nnoremap <buffer> <leader>b O<ESC>S## Block<ESC>vb<C-g>
" vim: set ff=unix ft=vim:

View file

@ -56,6 +56,8 @@ Plug 'jpalardy/vim-slime'
Plug 'hanschen/vim-ipython-cell'
" Jupyter notebooks intergration
Plug 'jupyter-vim/jupyter-vim'
" Live-editing notebooks in vim
Plug 'untitled-ai/jupyter_ascending.vim'
" Language specific =================================================
" Syntax support ====