comparison runtime/pack/dist/opt/matchit/plugin/matchit.vim @ 12499:d91cf2e26ef0

Update runtime files. commit https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 19 22:06:03 2017 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Sep 2017 22:15:06 +0200
parents 214f228718cf
children 1cfeee3ba4cd
comparison
equal deleted inserted replaced
12498:bf98d339b568 12499:d91cf2e26ef0
1 " matchit.vim: (global plugin) Extended "%" matching 1 " matchit.vim: (global plugin) Extended "%" matching
2 " Last Change: 2017 March 26 2 " Last Change: 2017 Sep 15
3 " Maintainer: Benji Fisher PhD <benji@member.AMS.org> 3 " Maintainer: Benji Fisher PhD <benji@member.AMS.org>
4 " Version: 1.13.3, for Vim 6.3+ 4 " Version: 1.13.3, for Vim 6.3+
5 " Fix from Fernando Torres included. 5 " Fix from Fernando Torres included.
6 " Improvement from Ken Takata included. 6 " Improvement from Ken Takata included.
7 " URL: http://www.vim.org/script.php?script_id=39 7 " URL: http://www.vim.org/script.php?script_id=39
702 let skip = "r:" . b:match_comment 702 let skip = "r:" . b:match_comment
703 else 703 else
704 let skip = 's:comment\|string' 704 let skip = 's:comment\|string'
705 endif 705 endif
706 let skip = s:ParseSkip(skip) 706 let skip = s:ParseSkip(skip)
707 " let restore_cursor = line(".") . "G" . virtcol(".") . "|" 707 " save v:count1 variable, might be reset from the restore_cursor command
708 " normal! H 708 let level = v:count1
709 " let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor
710 let restore_cursor = virtcol(".") . "|" 709 let restore_cursor = virtcol(".") . "|"
711 normal! g0 710 normal! g0
712 let restore_cursor = line(".") . "G" . virtcol(".") . "|zs" . restore_cursor 711 let restore_cursor = line(".") . "G" . virtcol(".") . "|zs" . restore_cursor
713 normal! H 712 normal! H
714 let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor 713 let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor
724 let skip = '0' 723 let skip = '0'
725 else 724 else
726 execute "if " . skip . "| let skip = '0' | endif" 725 execute "if " . skip . "| let skip = '0' | endif"
727 endif 726 endif
728 mark ' 727 mark '
729 let level = v:count1
730 while level 728 while level
731 if searchpair(openpat, '', closepat, a:spflag, skip) < 1 729 if searchpair(openpat, '', closepat, a:spflag, skip) < 1
732 call s:CleanUp(restore_options, a:mode, startline, startcol) 730 call s:CleanUp(restore_options, a:mode, startline, startcol)
733 return "" 731 return ""
734 endif 732 endif