dotfiles/vim/.vim/ftplugin/julia.vim

24 lines
982 B
VimL
Raw Normal View History

2022-09-06 23:34:19 -06:00
" Julia ==================================================
iabbrev <buffer> #! #!/usr/bin/env julia
iabbrev <buffer> initmodeline # vim: set ft=julia ff=unix:
2022-09-27 23:30:20 -06:00
" 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
2022-09-06 23:34:19 -06:00
let g:ipython_cell_run_command = 'Base.run(`clear`); include("{filepath}")'
let g:ipython_cell_cell_command = 'include_string(Main, clipboard())'
2022-09-27 23:30:20 -06:00
" 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>
2022-09-06 23:34:19 -06:00
" vim: set ff=unix ft=vim: