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
|
|
|
|
" MediaWiki 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 = "'''[^']\\+'''"
|
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 = "''[^']\\+''"
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_italic = "''"
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" text: '''''strong italic'''''
|
|
|
|
let g:vimwiki_rxBoldItalic = "'''''[^']\\+'''''"
|
|
|
|
let g:vimwiki_rxItalicBold = g:vimwiki_rxBoldItalic
|
2010-08-24 02:00:00 +02:00
|
|
|
let g:vimwiki_char_bolditalic = "'''''"
|
|
|
|
let g:vimwiki_char_italicbold = g:vimwiki_char_bolditalic
|
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-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" <hr>, horizontal rule
|
2012-06-07 02:00:00 +02:00
|
|
|
let g:vimwiki_rxHR = '^-----*$'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
2012-06-07 02:00:00 +02:00
|
|
|
" 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
|
2013-07-17 15:57:35 +02:00
|
|
|
let g:vimwiki_bullet_types = { '*':1, '#':1 }
|
|
|
|
let g:vimwiki_number_types = []
|
2013-07-14 18:58:46 +02:00
|
|
|
let g:vimwiki_list_markers = ['*', '#']
|
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'
|
|
|
|
let g:vimwiki_rxListItem = g:vimwiki_rxListItemWithoutCB . '\+\%(\[\(['.join(g:vimwiki_listsyms, '').']\)\]\s\)\?'
|
|
|
|
let g:vimwiki_rxListItemAndChildren = '^\(\s*\)\%('.g:vimwiki_rxListBullet.'\|'.g:vimwiki_rxListNumber.'\)\s\+\['.g:vimwiki_listsyms[4].'\]\s.*\%(\n\%(\1\s.*\|^$\)\)*'
|
2010-01-20 01:00:00 +01:00
|
|
|
|
|
|
|
" Preformatted text
|
|
|
|
let g:vimwiki_rxPreStart = '<pre>'
|
|
|
|
let g:vimwiki_rxPreEnd = '<\/pre>'
|
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*%%.*$'
|