forked from eclipse/cloe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lvimrc
34 lines (29 loc) · 833 Bytes
/
.lvimrc
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
" .lvimrc
" This file includes project settings for Vim.
" See https://github.com/embear/vim-localvimrc
" C++ Style Guidelines
augroup cppguidelines
autocmd!
autocmd Filetype cpp set textwidth=79
autocmd Filetype cpp set colorcolumn=80,100
augroup end
" ReStructuredText Settings
augroup rstsettings
autocmd!
autocmd Filetype rst set tw=79 cc=80
augroup end
doau Filetype
" Define AddPackageToPath function that can be used
" by other .lvimrc as well.
function AddPackageToPath(pkgpath)
for dir in ['include', 'src']
let subject = a:pkgpath.'/'.dir
if isdirectory(subject)
let &path .= subject . ','
endif
endfor
endfunction
" Set up the paths for gf and friends
for pkg in ['fable', 'runtime', 'models', 'oak', 'engine']
call AddPackageToPath(g:localvimrc_script_dir.'/'.pkg)
endfor