-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
43 lines (32 loc) · 841 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
" vim config
filetype on
syntax on
execute pathogen#infect()
"set omnifunc=syntaxcomplete#Complete
set number
set background=dark
set t_Co=16
colorscheme solarized
set laststatus=2
let g:airline_theme='dark'
set hidden
set history=100
filetype indent on
set nowrap
set tabstop=4
set shiftwidth=4
autocmd BufNewFile,BufRead *.ml set tabstop=2
autocmd BufNewFile,BufRead *.ml set shiftwidth=2
set expandtab
set smartindent
set autoindent
set hlsearch
nnoremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
set showmatch
" able to find Merlin's executable on PATH.
" Need to pull first
if executable('ocamlmerlin') && has('python')
let s:ocamlmerlin = substitute(system('opam config var share'), '\n$', '', '''') . "/ocamlmerlin"
execute "set rtp+=".s:ocamlmerlin."/vim"
execute "set rtp+=".s:ocamlmerlin."/vimbufsync"
endif