mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:40:06 +08:00
24 lines
480 B
VimL
24 lines
480 B
VimL
" vim match-up - even better matching
|
|
"
|
|
" Maintainer: Andy Massimino
|
|
" Email: a@normed.space
|
|
"
|
|
|
|
let s:nbsl = '\v%(\\@<!%(\\\\)*)@<=\m'
|
|
let g:matchup#re#not_bslash = s:nbsl
|
|
|
|
" 1 \1 \\1 \\\1 \\\\1 \\\\\1
|
|
let g:matchup#re#backref = s:nbsl . '\\' . '\(\d\)'
|
|
|
|
" \zs atom
|
|
let g:matchup#re#zs = s:nbsl . '\\zs'
|
|
|
|
" \ze atom
|
|
let g:matchup#re#ze = s:nbsl . '\\ze'
|
|
|
|
" \g{special}, \g{special:arg}
|
|
let g:matchup#re#gspec = s:nbsl . '\\g{\(\w\+\);\?\(.\{-}\)\?}'
|
|
|
|
" vim: fdm=marker sw=2
|
|
|