From 6a12aa87f41b02a68cd8e6b494e5400367c2b028 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 20:46:39 +0200 Subject: Add jenkinsfile syntax supports, closes #225 --- ftdetect/polyglot.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 56e1d6a6..6c8553e2 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -427,6 +427,15 @@ endfun au BufNewFile,BufRead * call s:SelectJavascript() augroup END +augroup filetypedetect +" jenkins:martinda/Jenkinsfile-vim-syntax +" Jenkinsfile +autocmd BufRead,BufNewFile Jenkinsfile set ft=Jenkinsfile +autocmd BufRead,BufNewFile Jenkinsfile* setf Jenkinsfile +autocmd BufRead,BufNewFile *.jenkinsfile set ft=Jenkinsfile +autocmd BufRead,BufNewFile *.jenkinsfile setf Jenkinsfile +augroup END + augroup filetypedetect " json:elzr/vim-json autocmd BufNewFile,BufRead *.json setlocal filetype=json -- cgit v1.2.3