Set default ext2syntax values for markdown and mediawiki.

Closes #769.

Also fixes an error when adding missing '.' to mapped extensions. The
previous behavior tried to access a value after it was removed from the
dictionary.
This commit is contained in:
Rane Brown
2019-12-02 12:53:41 -07:00
parent fb5d2f3f82
commit c58d5da049
2 changed files with 19 additions and 10 deletions

View File

@ -2657,13 +2657,18 @@ E.g.: >
\ '.mkd': 'markdown',
\ '.wiki': 'media'}
An extension that is registered with Vimwiki can trigger creation of a
|vimwiki-temporary-wiki| with the associated syntax. File extensions used in
|g:vimwiki_list| are automatically registered with Vimwiki using the default
syntax.
An extension that is registered with Vimwiki can trigger creation of
a |vimwiki-temporary-wiki|. File extensions used in |g:vimwiki_list| are
automatically registered with Vimwiki using the default syntax. Extensions
mapped with this option will instead use the mapped syntax.
Default: {}
Default: >
{'.md': 'markdown', '.mkdn': 'markdown',
\ '.mdwn': 'markdown', '.mdown': 'markdown',
\ '.markdown': 'markdown', '.mw': 'media'}},
Note: setting this option will overwrite the default values so include them if
desired.
------------------------------------------------------------------------------
*g:vimwiki_menu*