neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

vue.vim (946B)


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