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
|
|
|
|
2013-07-14 18:58:46 +02:00
|
|
|
" Lists
|
|
|
|
"1 means multiple bullets, like * ** ***
|
2014-07-30 21:26:07 +02:00
|
|
|
let g:vimwiki_bullet_types = { '-':0, '*':0, '#':0 }
|
2013-07-17 15:57:35 +02:00
|
|
|
let g:vimwiki_number_types = ['1)', '1.', 'i)', 'I)', 'a)', 'A)']
|
2013-07-14 18:58:46 +02:00
|
|
|
"this should contain at least one element
|
2013-07-17 15:57:35 +02:00
|
|
|
"it is used for i_<C-L><C-J> among other things
|
2014-07-30 21:26:07 +02:00
|
|
|
let g:vimwiki_list_markers = ['-', '1.', '*', 'I)', 'a)']
|
2010-01-20 01:00:00 +01: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
|
|
|
|
|
|
|
let g:vimwiki_rxListItemWithoutCB = '^\s*\%(\('.g:vimwiki_rxListBullet.'\)\|\('.g:vimwiki_rxListNumber.'\)\)\s'
|
2014-01-06 13:49:29 +01:00
|
|
|
let g:vimwiki_rxListItem = g:vimwiki_rxListItemWithoutCB . '\+\%(\[\(['.g:vimwiki_listsyms.']\)\]\s\)\?'
|
|
|
|
let g:vimwiki_rxListItemAndChildren = '^\(\s*\)\%('.g:vimwiki_rxListBullet.'\|'.g:vimwiki_rxListNumber.'\)\s\+\['.g:vimwiki_listsyms_list[4].'\]\s.*\%(\n\%(\1\s.*\|^$\)\)*'
|
2013-07-17 15:57:35 +02:00
|
|
|
|
2010-01-20 01:00:00 +01:00
|
|
|
" 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*%%.*$'
|
2015-01-04 23:44:24 +01:00
|
|
|
let g:vimwiki_rxTags = ':\([^:[:space:]]\+:\)\+'
|