summaryrefslogtreecommitdiffstats
path: root/ftplugin/vue.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:10:32 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:10:32 +0100
commitbb85059bacd5b415a012f25679111a0e55d3c6d9 (patch)
tree315b2238ec4840aa4bf00ae48276bdffded07673 /ftplugin/vue.vim
parent11f53253ad9fd0cd3e7a44ed9f8c80a4f265b46e (diff)
downloadvim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.tar.gz
vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.zip
Update
Diffstat (limited to 'ftplugin/vue.vim')
-rw-r--r--ftplugin/vue.vim7
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'])