diff options
Diffstat (limited to 'ftplugin/vue.vim')
-rw-r--r-- | ftplugin/vue.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim index 14ad26a0..cc10c561 100644 --- a/ftplugin/vue.vim +++ b/ftplugin/vue.vim @@ -13,6 +13,13 @@ 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 + if exists('g:loaded_ale') let g:ale_linters = get(g:, 'ale_linters', {}) let g:ale_linters.vue = get(g:ale_linters, 'vue', ['eslint']) |