From bb85059bacd5b415a012f25679111a0e55d3c6d9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 30 Dec 2017 11:10:32 +0100 Subject: Update --- ftplugin/vue.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ftplugin/vue.vim') 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 [[ :call search('^<\(template\script\style\)', 'bW') + nnoremap ]] :call search('^<\(template\script\style\)', 'W') + nnoremap [] :call search('^script\style\)', 'bW') + nnoremap ][ :call search('^script\style\)', 'W') +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']) -- cgit v1.2.3