mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
22 lines
587 B
VimL
22 lines
587 B
VimL
set nocompatible
|
|
source ../common/bootstrap.vim
|
|
|
|
let g:tex_flavor = "latex"
|
|
|
|
silent edit test.tex
|
|
|
|
call matchup#perf#timeout_start(0)
|
|
|
|
normal! 7G
|
|
let s:current = matchup#delim#get_current('all', 'both')
|
|
let s:corresponding = matchup#delim#get_matching(s:current)
|
|
call matchup#test#assert_equal(1, s:corresponding[0].lnum)
|
|
|
|
normal! 9G
|
|
let s:current = matchup#delim#get_current('all', 'both')
|
|
let s:corresponding = matchup#delim#get_matching(s:current)
|
|
call matchup#test#assert_equal(9, s:current.lnum)
|
|
call matchup#test#assert_equal(1, len(s:corresponding))
|
|
|
|
call matchup#test#finished()
|