2010-05-12 02:00:00 +02:00
|
|
|
" vim:tabstop=2:shiftwidth=2:expandtab:foldmethod=marker:textwidth=79
|
2010-01-20 01:00:00 +01:00
|
|
|
" Vimwiki syntax file
|
|
|
|
" Default syntax
|
|
|
|
" Author: Maxim Kim <habamax@gmail.com>
|
|
|
|
" Home: http://code.google.com/p/vimwiki/
|
|
|
|
|
2012-06-07 02:00:00 +02:00
|
|
|
" placeholder for math environments
|
|
|
|
let b:vimwiki_mathEnv = ""
|
|
|
|
|
|
|
|
" text: $ equation_inline $
|
|
|
|
let g:vimwiki_rxEqIn = '\$[^$`]\+\$'
|
|
|
|
let g:vimwiki_char_eqin = '\$'
|
|
|
|
|
2010-01-20 01:00:00 +01:00
|
|
|
" text: *strong*
|
|
|
|
" let g:vimwiki_rxBold = '\*[^*]\+\*'
|
|
|
|
let g:vimwiki_rxBold = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'\*'.
|
2010-05-12 02:00:00 +02:00
|
|
|
\'\%([^*`[:space:]][^*`]*[^*`[:space:]]\|[^*`[:space:]]\)'.
|
2010-01-20 01:00:00 +01:00
|
|
|
\'\*'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_bold = '*'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: _emphasis_
|
|
|
|
" let g:vimwiki_rxItalic = '_[^_]\+_'
|
|
|
|
let g:vimwiki_rxItalic = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'_'.
|
2010-05-12 02:00:00 +02:00
|
|
|
\'\%([^_`[:space:]][^_`]*[^_`[:space:]]\|[^_`[:space:]]\)'.
|
2010-01-20 01:00:00 +01:00
|
|
|
\'_'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_italic = '_'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: *_bold italic_* or _*italic bold*_
|
|
|
|
let g:vimwiki_rxBoldItalic = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'\*_'.
|
2010-05-12 02:00:00 +02:00
|
|
|
\'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'.
|
2010-01-20 01:00:00 +01:00
|
|
|
\'_\*'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_bolditalic = '\*_'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
let g:vimwiki_rxItalicBold = '\%(^\|\s\|[[:punct:]]\)\@<='.
|
|
|
|
\'_\*'.
|
2010-05-12 02:00:00 +02:00
|
|
|
\'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'.
|
2010-01-20 01:00:00 +01:00
|
|
|
\'\*_'.
|
|
|
|
\'\%([[:punct:]]\|\s\|$\)\@='
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_italicbold = '_\*'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: `code`
|
|
|
|
let g:vimwiki_rxCode = '`[^`]\+`'
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_code = '`'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: ~~deleted text~~
|
|
|
|
let g:vimwiki_rxDelText = '\~\~[^~`]\+\~\~'
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_deltext = '\~\~'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: ^superscript^
|
|
|
|
let g:vimwiki_rxSuperScript = '\^[^^`]\+\^'
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_superscript = '^'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: ,,subscript,,
|
|
|
|
let g:vimwiki_rxSubScript = ',,[^,`]\+,,'
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_subscript = ',,'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
2012-06-07 02:00:00 +02:00
|
|
|
" generic headers
|
|
|
|
let g:vimwiki_rxH = '='
|
|
|
|
let g:vimwiki_symH = 1
|
|
|
|
|
|
|
|
|
2010-08-24 02:00:00 +02:00
|
|
|
|
2010-01-20 01:00:00 +01:00
|
|
|
" <hr>, horizontal rule
|
2012-06-07 02:00:00 +02:00
|
|
|
let g:vimwiki_rxHR = '^-----*$'
|
|
|
|
|
|
|
|
" Tables. Each line starts and ends with '|'; each cell is separated by '|'
|
|
|
|
let g:vimwiki_rxTableSep = '|'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" List items start with optional whitespace(s) then '* ' or '# '
|
2012-06-07 02:00:00 +02:00
|
|
|
let g:vimwiki_rxListBullet = '^\s*[*-]\s'
|
2010-01-20 01:00:00 +01:00
|
|
|
let g:vimwiki_rxListNumber = '^\s*#\s'
|
|
|
|
|
|
|
|
let g:vimwiki_rxListDefine = '::\(\s\|$\)'
|
|
|
|
|
|
|
|
" Preformatted text
|
|
|
|
let g:vimwiki_rxPreStart = '{{{'
|
|
|
|
let g:vimwiki_rxPreEnd = '}}}'
|
2011-06-11 02:00:00 +02:00
|
|
|
|
2012-06-07 02:00:00 +02:00
|
|
|
" Math block
|
|
|
|
let g:vimwiki_rxMathStart = '{{\$'
|
|
|
|
let g:vimwiki_rxMathEnd = '}}\$'
|
|
|
|
|
2011-06-11 02:00:00 +02:00
|
|
|
let g:vimwiki_rxComment = '^\s*%%.*$'
|