-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotvimrc
33 lines (27 loc) · 832 Bytes
/
dotvimrc
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
set nocompatible
execute pathogen#infect()
filetype plugin indent on
set modeline
syntax on
set bg=dark
setlocal shiftwidth=3
setlocal tabstop=3
" https://github.com/jiangmiao/simple-javascript-indenter
" Brief Mode will indent no more than one level.
let g:SimpleJsIndenter_BriefMode = 1
set undofile
set undodir=$HOME/.vim/undo/
" Octave syntax
augroup filetypedetect
au! BufRead,BufNewFile *.m,*.oct set filetype=octave
augroup END
" Use keywords from Octave syntax language file for autocomplete
if has("autocmd") && exists("+omnifunc")
autocmd Filetype octave
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
endif
" Override detection of *.md as modula to be markdown. I don't think I'll ever
" use modula
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown