Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save richardsonlima/fd42bf8f34ca4444cc828a34c8093f4c to your computer and use it in GitHub Desktop.
Save richardsonlima/fd42bf8f34ca4444cc828a34c8093f4c to your computer and use it in GitHub Desktop.
Jenkinsfile VIM syntax highlighting
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc
@Molina-Git
Copy link

Nice!! It's the same for Nvim (init.vim)

@cckcoder
Copy link

Thx so much--it work 👍

@lirem
Copy link

lirem commented Oct 31, 2022

It's really works, thank you :)

@mbenhalima
Copy link

@thepenguinthatwants this worked for me:

augroup set_jenkins_groovy
au!
au BufNewFile,BufRead *.jenkinsfile,*.Jenkinsfile,Jenkinsfile,jenkinsfile setf groovy
augroup END

worked great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment