2012-06-07 02:00:00 +02:00
|
|
|
" vim:tabstop=2:shiftwidth=2:expandtab:foldmethod=marker:textwidth=79
|
|
|
|
" Vimwiki syntax file
|
2015-02-23 12:10:42 +01:00
|
|
|
" Desc: Defines markdown syntax
|
|
|
|
" Home: https://github.com/vimwiki/vimwiki/
|
2012-06-07 02:00:00 +02:00
|
|
|
|
|
|
|
" text: $ equation_inline $
|
|
|
|
let g:vimwiki_rxEqIn = '\$[^$`]\+\$'
|
|
|
|
let g:vimwiki_char_eqin = '\$'
|
|
|
|
|
|
|
|
" text: *strong*
|
|
|
|
" let g:vimwiki_rxBold = '\*[^*]\+\*'
|
|
|
|
let g:vimwiki_rxBold = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'\*'.
|
|
|
|
\'\%([^*`[:space:]][^*`]*[^*`[:space:]]\|[^*`[:space:]]\)'.
|
|
|
|
\'\*'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
|
|
|
let g:vimwiki_char_bold = '*'
|
|
|
|
|
|
|
|
" text: _emphasis_
|
|
|
|
" let g:vimwiki_rxItalic = '_[^_]\+_'
|
|
|
|
let g:vimwiki_rxItalic = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'_'.
|
|
|
|
\'\%([^_`[:space:]][^_`]*[^_`[:space:]]\|[^_`[:space:]]\)'.
|
|
|
|
\'_'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
|
|
|
let g:vimwiki_char_italic = '_'
|
|
|
|
|
|
|
|
" text: *_bold italic_* or _*italic bold*_
|
|
|
|
let g:vimwiki_rxBoldItalic = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'\*_'.
|
|
|
|
\'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'.
|
|
|
|
\'_\*'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
|
|
|
let g:vimwiki_char_bolditalic = '\*_'
|
|
|
|
|
|
|
|
let g:vimwiki_rxItalicBold = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'_\*'.
|
|
|
|
\'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'.
|
|
|
|
\'\*_'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
|
|
|
let g:vimwiki_char_italicbold = '_\*'
|
|
|
|
|
|
|
|
" text: `code`
|
|
|
|
let g:vimwiki_rxCode = '`[^`]\+`'
|
|
|
|
let g:vimwiki_char_code = '`'
|
|
|
|
|
|
|
|
" text: ~~deleted text~~
|
|
|
|
let g:vimwiki_rxDelText = '\~\~[^~`]\+\~\~'
|
|
|
|
let g:vimwiki_char_deltext = '\~\~'
|
|
|
|
|
|
|
|
" text: ^superscript^
|
|
|
|
let g:vimwiki_rxSuperScript = '\^[^^`]\+\^'
|
|
|
|
let g:vimwiki_char_superscript = '^'
|
|
|
|
|
|
|
|
" text: ,,subscript,,
|
|
|
|
let g:vimwiki_rxSubScript = ',,[^,`]\+,,'
|
|
|
|
let g:vimwiki_char_subscript = ',,'
|
|
|
|
|
|
|
|
" generic headers
|
|
|
|
let g:vimwiki_rxH = '#'
|
|
|
|
let g:vimwiki_symH = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" <hr>, horizontal rule
|
|
|
|
let g:vimwiki_rxHR = '^-----*$'
|
|
|
|
|
|
|
|
" Tables. Each line starts and ends with '|'; each cell is separated by '|'
|
|
|
|
let g:vimwiki_rxTableSep = '|'
|
|
|
|
|
2013-07-14 18:58:46 +02:00
|
|
|
" Lists
|
2016-12-31 20:47:19 +01:00
|
|
|
let g:vimwiki_bullet_types = ['-', '*', '+']
|
|
|
|
let s:media_syntax.recurring_bullets = 0
|
2013-07-17 15:57:35 +02:00
|
|
|
let g:vimwiki_number_types = ['1.']
|
2013-07-14 18:58:46 +02:00
|
|
|
let g:vimwiki_list_markers = ['-', '*', '+', '1.']
|
2012-06-07 02:00:00 +02:00
|
|
|
let g:vimwiki_rxListDefine = '::\%(\s\|$\)'
|
2013-07-17 15:57:35 +02:00
|
|
|
call vimwiki#lst#setup_marker_infos()
|
2013-07-18 07:55:24 +02:00
|
|
|
|
2012-06-07 02:00:00 +02:00
|
|
|
" Preformatted text
|
|
|
|
let g:vimwiki_rxPreStart = '```'
|
|
|
|
let g:vimwiki_rxPreEnd = '```'
|
|
|
|
|
|
|
|
" Math block
|
2012-07-07 02:00:00 +02:00
|
|
|
let g:vimwiki_rxMathStart = '\$\$'
|
|
|
|
let g:vimwiki_rxMathEnd = '\$\$'
|
2012-06-07 02:00:00 +02:00
|
|
|
|
|
|
|
let g:vimwiki_rxComment = '^\s*%%.*$'
|
2015-11-11 12:01:01 +01:00
|
|
|
let g:vimwiki_rxTags = '\%(^\|\s\)\@<=:\%([^:[:space:]]\+:\)\+\%(\s\|$\)\@='
|