dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit f83c371661fda9ec7ddd4c684962602699342eb6
parent 7454943bf890047c3959e3d2612968fbd90be5a5
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed,  4 Mar 2020 01:04:13 +0100

vim: evaluate code blocks in md

Former-commit-id: 557097485b02a417e0d0fed4015df167fc396865
Diffstat:
Mvim/after/ftplugin/markdown.vim | 1+
Mvim/vimrc | 6++++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim @@ -13,6 +13,7 @@ inoremap <buffer> ! !<c-g>u inoremap <buffer> , ,<c-g>u nnoremap <buffer> <leader><CR> :silent !open "%<.pdf"<CR>:redraw!<CR> +nnoremap <buffer> <leader>` :<C-u>EvalBlock<CR> " Autocommands " if g:loaded_dispatch diff --git a/vim/vimrc b/vim/vimrc @@ -143,6 +143,9 @@ Plug 'segeljakt/vim-isotope' " Lightweight REPL Plug 'axvr/zepl.vim' + +" Evaluate markdown code blocks +Plug 'gpanders/vim-medieval' call plug#end() " }}} " Config {{{ @@ -413,6 +416,9 @@ augroup zepl augroup END nnoremap gzr :Repl<CR> " }}} +" Medieval {{{ +let g:medieval_langs = ['python=python3', 'ruby', 'sh', 'bash', 'haskell=ghci', 'javascript=node'] +" }}} " }}} " }}} " General {{{