Bram Moolenaar | 0d878b9 | 2022-07-01 18:45:04 +0100 | [diff] [blame] | 1 | " Vim filetype plugin file |
| 2 | " Language: vue |
Riley Bruins | aa9fc8e | 2025-06-09 20:55:31 +0200 | [diff] [blame] | 3 | " Last Change: |
| 4 | " 2025 Jun 09 by Vim project set comment options #17479 |
Bram Moolenaar | 0d878b9 | 2022-07-01 18:45:04 +0100 | [diff] [blame] | 5 | |
| 6 | if exists("b:did_ftplugin") | finish | endif |
| 7 | let b:did_ftplugin = 1 |
| 8 | |
| 9 | " Make sure the continuation lines below do not cause problems in |
| 10 | " compatibility mode. |
| 11 | let s:save_cpo = &cpo |
| 12 | set cpo-=C |
| 13 | |
Riley Bruins | aa9fc8e | 2025-06-09 20:55:31 +0200 | [diff] [blame] | 14 | setlocal commentstring=<!--\ %s\ --> |
| 15 | setlocal comments=s:<!--,m:\ \ \ \ ,e:--> |
| 16 | |
| 17 | let b:undo_ftplugin = "setlocal comments< commentstring<" |
| 18 | |
Bram Moolenaar | 0d878b9 | 2022-07-01 18:45:04 +0100 | [diff] [blame] | 19 | " Copied from ftplugin/html.vim |
| 20 | " Original thanks to Johannes Zellner and Benji Fisher. |
| 21 | if exists("loaded_matchit") |
| 22 | let b:match_ignorecase = 1 |
| 23 | let b:match_words = '<:>,' |
| 24 | \ .. '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' |
| 25 | \ .. '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' |
| 26 | \ .. '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' |
Riley Bruins | aa9fc8e | 2025-06-09 20:55:31 +0200 | [diff] [blame] | 27 | let b:undo_ftplugin .= ' | unlet! b:match_words b:match_ignorecase' |
Bram Moolenaar | 0d878b9 | 2022-07-01 18:45:04 +0100 | [diff] [blame] | 28 | endif |
| 29 | |
| 30 | " Restore the saved compatibility options. |
| 31 | let &cpo = s:save_cpo |
| 32 | unlet s:save_cpo |