vim-polyglot/ftplugin/vue.vim

24 lines
752 B
VimL
Raw Normal View History

if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vue') != -1
finish
endif
2017-02-02 15:49:51 -05:00
" Vim filetype plugin
" Language: Vue.js
" Maintainer: Eduardo San Martin Morote
" Author: Adriaan Zonnenberg
2018-07-08 09:16:28 -04:00
if exists('b:did_ftplugin')
2017-02-02 15:49:51 -05:00
finish
endif
runtime! ftplugin/html.vim
2017-03-23 06:28:19 -04:00
setlocal suffixesadd+=.vue
2017-12-30 05:10:32 -05: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