From 30c87b73deff05c7dd9590228c0615a3299f39ff Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 19 Nov 2017 21:51:33 +0100 Subject: [PATCH] Automatically set vb format, closes #243 --- config.vim | 4 ++++ ftdetect/polyglot.vim | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config.vim b/config.vim index 2f90dc9..d37407f 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 19bfa77..8197de6 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