blob: a7ad8dfd99cde0c99eea6ec78c1348430a8ee3fc [file] [log] [blame]
Bram Moolenaar0d878b92022-07-01 18:45:04 +01001" Vim filetype plugin file
2" Language: vue
Riley Bruinsaa9fc8e2025-06-09 20:55:31 +02003" Last Change:
4" 2025 Jun 09 by Vim project set comment options #17479
Bram Moolenaar0d878b92022-07-01 18:45:04 +01005
6if exists("b:did_ftplugin") | finish | endif
7let b:did_ftplugin = 1
8
9" Make sure the continuation lines below do not cause problems in
10" compatibility mode.
11let s:save_cpo = &cpo
12set cpo-=C
13
Riley Bruinsaa9fc8e2025-06-09 20:55:31 +020014setlocal commentstring=<!--\ %s\ -->
15setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
16
17let b:undo_ftplugin = "setlocal comments< commentstring<"
18
Bram Moolenaar0d878b92022-07-01 18:45:04 +010019" Copied from ftplugin/html.vim
20" Original thanks to Johannes Zellner and Benji Fisher.
21if 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 Bruinsaa9fc8e2025-06-09 20:55:31 +020027 let b:undo_ftplugin .= ' | unlet! b:match_words b:match_ignorecase'
Bram Moolenaar0d878b92022-07-01 18:45:04 +010028endif
29
30" Restore the saved compatibility options.
31let &cpo = s:save_cpo
32unlet s:save_cpo