" vim:tabstop=2:shiftwidth=2:expandtab:foldmethod=marker:textwidth=79 " Vimwiki syntax file " Desc: Special stuff for markdown syntax " Home: https://github.com/vimwiki/vimwiki/ " LINKS: assume this is common to all syntaxes "{{{ " }}} " ------------------------------------------------------------------------- " Load concrete Wiki syntax: sets regexes and templates for headers and links " ------------------------------------------------------------------------- " LINKS: setup of larger regexes {{{ " *. ANY wikilink {{{ " *c) match DESCRIPTION within ANY wikilink let g:vimwiki_rxWikiLinkMatchDescr = ''. \ g:vimwiki_rxWikiLink0MatchDescr.'\|'. \ g:vimwiki_rxWikiLink1MatchDescr " }}} " LINKS: Setup weblink0 regexps {{{ " 0. URL : free-standing links: keep URL UR(L) strip trailing punct: URL; URL) UR(L)) let g:vimwiki_rxWeblink0 = g:vimwiki_rxWeblink " 0a) match URL within URL let g:vimwiki_rxWeblinkMatchUrl0 = g:vimwiki_rxWeblinkMatchUrl " 0b) match DESCRIPTION within URL let g:vimwiki_rxWeblinkMatchDescr0 = g:vimwiki_rxWeblinkMatchDescr " }}} " LINKS: Setup weblink1 regexps {{{ let g:vimwiki_rxWeblink1Prefix = '[' let g:vimwiki_rxWeblink1Suffix = ')' let g:vimwiki_rxWeblink1Separator = '](' " [DESCRIPTION](URL) let g:vimwiki_Weblink1Template = g:vimwiki_rxWeblink1Prefix . '__LinkDescription__'. \ g:vimwiki_rxWeblink1Separator. '__LinkUrl__'. \ g:vimwiki_rxWeblink1Suffix let s:valid_chars = '[^\\]' let g:vimwiki_rxWeblink1Prefix = vimwiki#u#escape(g:vimwiki_rxWeblink1Prefix) let g:vimwiki_rxWeblink1Suffix = vimwiki#u#escape(g:vimwiki_rxWeblink1Suffix) let g:vimwiki_rxWeblink1Separator = vimwiki#u#escape(g:vimwiki_rxWeblink1Separator) let g:vimwiki_rxWeblink1Url = s:valid_chars.'\{-}' let g:vimwiki_rxWeblink1Descr = s:valid_chars.'\{-}' " " " 2012-02-04 TODO not starting with [[ or ][ ? ... prefix = '[\[\]]\@