-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMINRC
More file actions
18 lines (11 loc) · 630 Bytes
/
MINRC
File metadata and controls
18 lines (11 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" If after installing JuliaFormatter.vim, you are having trouble getting it to work, try the following minimal vimrc file.
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
Plug '~/gitrepos/JuliaFormatter.vim'
" Initialize plugin system
call plug#end()
nnoremap <space>jf :<C-u>call JuliaFormatter#Format(0)<CR>
vnoremap <space>jf :<C-u>call JuliaFormatter#Format(1)<CR>
" Save the above to a file `MINRC`, and run `vim -u MINRC tests/test.jl` and try hitting `\jf` in normal or visual mode.
nnoremap <silent> <space>sv :source tests/MINRC<CR>