summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-11-19 21:51:33 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-11-19 21:51:43 +0100
commit30c87b73deff05c7dd9590228c0615a3299f39ff (patch)
tree2f749f9b2f7a919219d12e330edf7cd5b2719f1d
parent1713d35f06420fac33c626306fd51a286c837969 (diff)
downloadvim-polyglot-30c87b73deff05c7dd9590228c0615a3299f39ff.tar.gz
vim-polyglot-30c87b73deff05c7dd9590228c0615a3299f39ff.zip
Automatically set vb format, closes #243v3.1.0
-rw-r--r--config.vim4
-rw-r--r--ftdetect/polyglot.vim4
2 files changed, 8 insertions, 0 deletions
diff --git a/config.vim b/config.vim
index 2f90dc97..d37407f0 100644
--- a/config.vim
+++ b/config.vim
@@ -9,3 +9,7 @@ if !exists('g:vim_json_syntax_conceal')
endif
let g:filetype_euphoria = 'elixir'
+
+augroup filetypedetect
+ autocmd BufNewFile,BufReadPost *.vb setlocal filetype=vbnet
+augroup END
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 19bfa777..8197de6d 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -9,6 +9,10 @@ if !exists('g:vim_json_syntax_conceal')
endif
let g:filetype_euphoria = 'elixir'
+
+augroup filetypedetect
+ autocmd BufNewFile,BufReadPost *.vb setlocal filetype=vbnet
+augroup END
augroup filetypedetect
" apiblueprint:sheerun/apiblueprint.vim
autocmd BufReadPost,BufNewFile *.apib set filetype=apiblueprint