let g:clang_compilation_database = '.'
-let g:deoplete#enable_at_startup=1
+" Speedup deoplete startup time, see deoplete FAQ
+let g:python3_host_prog = '/usr/bin/python3'
+" deoplete requires huge startuptime. Delay loading upon first InsertEnter.
+let g:deoplete#enable_at_startup = 0
+autocmd InsertEnter * call deoplete#enable()
"augroup pencil
"au!
let g:vim_markdown_frontmatter=1
let g:vim_markdown_math=1
+au FileType markdown call RagtagInit()
+
let g:guesslang_langs=[ 'en_US', 'de_AT']
-au FileType text,markdown,mail,tex,gitcommit setlocal spell
+au FileType text,markdown,mail,tex,gitcommit,mediawiki,vimwiki setlocal spell
au BufReadPost * :DetectIndent
+au FileType text,markdown,mail,gitcommit,mediawiki,vimwiki set fo+=n
+
+au FileType mediawiki setlocal wrap linebreak tw=0
+
au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.'
au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.'
\ ['|', 'OBSOLETE(o)', 'WONT(n)'],
\ ['CANCELED(c)']]
+let g:vimwiki_list = [{'path': '~/.vimwiki/'}]
+
" Trailing whitespace
highlight default link TrailingWhitespace SpellCap
" Make trailing whitespace be flagged as bad.