Re-enable julia REPL

This commit is contained in:
Akemi Izuko 2023-12-23 20:13:53 -07:00
parent 23ab938841
commit a27da0edcf
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC
2 changed files with 17 additions and 1 deletions

View file

@ -2,8 +2,22 @@
iabbrev <buffer> #! #!/usr/bin/env julia iabbrev <buffer> #! #!/usr/bin/env julia
iabbrev <buffer> initmodeline # vim: set ft=julia ff=unix: 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_run_command = 'Base.run(`clear`); include("{filepath}")'
let g:ipython_cell_cell_command = 'include_string(Main, clipboard())' 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: " vim: set ff=unix ft=vim:

View file

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