SjoenH / TDT4120-2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Algdat Høsten 2018

Feel free to steal or add your own solutions to this repo.

Blessings, Henry.

Vim setup with quick execution of code

Syntax highlighting ++

Install this plugin for syntax-highlighting (follow steps under) https://github.com/JuliaEditorSupport/julia-vim

Copy (or symlink) the contents of the plugin repo into the vim application support directory:

git clone git://github.com/JuliaEditorSupport/julia-vim.git
cd julia-vim
mkdir -p ~/.vim
cp -R * ~/.vim

Julia should appear as a file type and be automatically detected for files with the .jl extension.

Run code on keypress

Add this to your .vimrc

 " Mapping <F9> to run julia program
autocmd FileType julia nnoremap <buffer> <F9> :exec '!julia' shellescape(@%, 1)<cr>

About

License:MIT License


Languages

Language:Julia 84.1%Language:TeX 15.9%