mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-08 18:34:45 +08:00
Setting options for ALE in this file can sometimes overwrite settings that users set, say if they set global settings for ALE after ftplugin files are loaded. The Vue files should not be checked with ESLint by default, and ESLint checking should be enabled manually after installing the Vue ESLint plugin.
20 lines
660 B
VimL
20 lines
660 B
VimL
" Vim filetype plugin
|
|
" Language: Vue.js
|
|
" Maintainer: Eduardo San Martin Morote
|
|
" Author: Adriaan Zonnenberg
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
|
|
runtime! ftplugin/html.vim
|
|
|
|
setlocal suffixesadd+=.vue
|
|
|
|
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
|