robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:aa9fc8e: runtime(vue): set 'com' and 'cms' options in ftplugin2f167c53ac

master
946 B32 linesraw
1" Vim filetype plugin file
2" Language:	vue
3" Last Change:
4" 2025 Jun 09 by Vim project set comment options #17479
5
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
14setlocal commentstring=<!--\ %s\ -->
15setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
16
17let b:undo_ftplugin = "setlocal comments< commentstring<"
18
19" 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>'
27	let b:undo_ftplugin .= ' | unlet! b:match_words b:match_ignorecase'
28endif
29
30" Restore the saved compatibility options.
31let &cpo = s:save_cpo
32unlet s:save_cpo