" vim:tabstop=2:shiftwidth=2:expandtab:textwidth=99 " Vimwiki autoload plugin file " Home: https://github.com/vimwiki/vimwiki/ " ------------------------------------------------------------------------------------------------ " This file provides functions to manage the various state variables which are needed during a " Vimwiki session. " They consist of: " " - global variables. These are stored in the dict g:vimwiki_global_vars. They consist mainly of " global user variables and syntax stuff which is the same for every syntax. " " - wiki-local variables. They are stored in g:vimwiki_wikilocal_vars which is a list of " dictionaries. One dict for every registered wiki. The last dictionary contains default values " (used for temporary wikis). " " - syntax variables. Stored in the dict g:vimwiki_syntax_variables which holds all the regexes and " other stuff which is needed for highlighting. " " - buffer-local variables. They are stored as buffer variables directly (b:foo) " As a developer, you should, if possible, only use the get_ and set_ functions for these types of " variables, not the underlying dicts! " ------------------------------------------------------------------------------------------------ function! s:populate_global_variables() let g:vimwiki_global_vars = { \ 'CJK_length': 0, \ 'auto_chdir': 0, \ 'autowriteall': 1, \ 'conceallevel': 2, \ 'diary_months': \ { \ 1: 'January', 2: 'February', 3: 'March', \ 4: 'April', 5: 'May', 6: 'June', \ 7: 'July', 8: 'August', 9: 'September', \ 10: 'October', 11: 'November', 12: 'December' \ }, \ 'dir_link': '', \ 'ext2syntax': {}, \ 'folding': '', \ 'global_ext': 1, \ 'hl_cb_checked': 0, \ 'hl_headers': 0, \ 'html_header_numbering': 0, \ 'html_header_numbering_sym': '', \ 'list_ignore_newline': 1, \ 'text_ignore_newline': 1, \ 'listsyms': ' .oOX', \ 'listsym_rejected': '-', \ 'map_prefix': 'w', \ 'menu': 'Vimwiki', \ 'table_auto_fmt': 1, \ 'table_mappings': 1, \ 'toc_header': 'Contents', \ 'url_maxsave': 15, \ 'use_calendar': 1, \ 'use_mouse': 0, \ 'user_htmls': '', \ 'valid_html_tags': 'b,i,s,u,sub,sup,kbd,br,hr,div,center,strong,em', \ 'w32_dir_enc': '', \ } " copy the user's settings from variables of the form g:vimwiki_