24 lines
752 B
VimL
Raw Permalink Normal View History

if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vue') != -1
finish
endif
2017-02-02 21:49:51 +01:00
" Vim filetype plugin
" Language: Vue.js
" Maintainer: Eduardo San Martin Morote
" Author: Adriaan Zonnenberg
2018-07-08 15:16:28 +02:00
if exists('b:did_ftplugin')
2017-02-02 21:49:51 +01:00
finish
endif
runtime! ftplugin/html.vim
2017-03-23 11:28:19 +01:00
setlocal suffixesadd+=.vue
2017-12-30 11:10:32 +01:00
if !exists('g:no_plugin_maps') && !exists('g:no_vue_maps')
nnoremap <silent> <buffer> [[ :call search('^<\(template\<Bar>script\<Bar>style\)', 'bW')<CR>
nnoremap <silent> <buffer> ]] :call search('^<\(template\<Bar>script\<Bar>style\)', 'W')<CR>
nnoremap <silent> <buffer> [] :call search('^</\(template\<Bar>script\<Bar>style\)', 'bW')<CR>
nnoremap <silent> <buffer> ][ :call search('^</\(template\<Bar>script\<Bar>style\)', 'W')<CR>
endif