aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/rc/vimwiki.vim
blob: d940a7a589c1045ac9b8abc248aac952c376303f (plain)
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
44
Plug 'vimwiki/vimwiki'

" For vimwiki
" filetype plugin on

" Register relationships of extensions to syntaxes
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}

let g:vimwiki_list = [{'path': '~/docs/notas/',
						\'syntax': 'markdown',
						\'ext': '.md',
						\'diary_rel_path': 'diario/',
						\'diary_header': 'Diario',
						\'diary_index': 'index'},
					\ {'path': '~/docs/vimwiki/',
						\'syntax': 'markdown',
						\'ext': '.md'},
					\ {'path': '~/trabajo/acteu/vimwiki/',
						\'syntax': 'markdown',
						\'ext': '.md'}]

let g:vimwiki_conceallevel = 2

" Treat files with registered extensions as vimwiki
let g:vimwiki_global_ext = 1

" Symbols to show progression of list items
let g:vimwiki_listsyms = ' .oOX'

" Append wiki file extension to links in Markdown
let g:vimwiki_markdown_link_ext = 1

" Perform an :lcd to the wiki's root folder on page opening
let g:vimwiki_auto_chdir = 1

" Automatically generate a level 1 header when creating a new wiki page
let g:vimwiki_auto_header = 1

let g:vimwiki_diary_months = {
	\ 1: 'Enero', 2: 'Febrero', 3: 'Marzo',
	\ 4: 'Abril', 5: 'Mayo', 6: 'Junio',
	\ 7: 'Julio', 8: 'Agosto', 9: 'Septiembre',
	\ 10: 'Octubre', 11: 'Noviembre', 12: 'Diciembre'
\ }