\startenvironment * \setuppapersize[A4] \usemodule [t-vim] \setuplayout [ backspace=25mm, width=16cm, topspace=1cm, height=28cm ] %%%%%%%%% Color scheme for Julia \startcolorscheme[juliacolor] \definesyntaxgroup [Type][color={blue}] \definesyntaxgroup [Function][color={h=741b83}] \definesyntaxgroup [Constant][color={h=c0a30e}] \definesyntaxgroup [Operator][color={red}] \definesyntaxgroup [Number][color={h=135e5f}] \definesyntaxgroup [Delimiter][color={h=f49559}] \definesyntaxgroup [Conditional][color={red}] \definesyntaxgroup [Repeat][color={red}] \definesyntaxgroup [Keyword][color={red}] \definesyntaxgroup [Exception][color={h=b32a2a}] \definesyntaxgroup [Boolean][color={h=2a9bb3}] \definesyntaxgroup [Float][color={135e5f}] \definesyntaxgroup [String][color={h=15247b}] \definesyntaxgroup [Character][color={black}] \definesyntaxgroup [SpecialChar][color={black}] \definesyntaxgroup [Identifier][color={black}] \definesyntaxgroup [Comment][color={h=91b196}] \definesyntaxgroup [juliaTypeOperator][color={h=8b0000}] \definesyntaxgroup [Statement][color={red}] \definesyntaxgroup [Include][color={orange}] \stopcolorscheme \defineframedtext[codebox][width=\localhsize,corner=round] %%%%%%%%%%% % This works but probably has a huge penalty % Should I rather load the julia plugin manually without vundle/vim-plug? % I'm not a pro in vim so I'm not sure if that's possible \startvimrc[name=juliavimrc] % set nocompatible call vundle#begin() Plugin 'JuliaEditorSupport/julia-vim' call vundle#end() \stopvimrc \startvimrc[name=color_change] hi link juliaParDelim Delimiter hi link juliaFunctionCall Function hi link juliaConditionalBlock Conditional hi link juliaTypeOperator juliaTypeOperator \stopvimrc \setupvimtyping[ vimcommand=vim, before=\startcodebox, after=\stopcodebox, ] \definevimtyping[julia][ syntax=julia, % Syntax specified to vim escape=off, % Math escape style=\tt, alternative=juliacolor, % Syntax color changes numbering=yes, % Numbering of the lines vimrc=juliavimrc, % Loading the julia plugin extras=color_change, % Overloading of the final group of each syntactic group lines=split, % Allowing split lines (caution with long comments) ] \definevimtyping[python][ syntax=python, % Syntax specified to vim escape=off, % Math escape style=\tt, numbering=no, extras=color_change, strip=yes, % Removing the total indent? ] \definevimtyping[C][ syntax=cpp, % Syntax specified to vim escape=off, % Math escape style=\tt, numbering=yes, extras=color_change, alternative=juliacolor, ] \stopenvironment