Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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
@ichihara-3
Copy link

This is very useful 👍
Thanks!

@Lemmah
Copy link

Lemmah commented May 19, 2019

Awesome! I was almost getting a plugin for this. Thanks!

@aryklein
Copy link

aryklein commented Oct 7, 2019

Thanks 👍

@mpwsh
Copy link

mpwsh commented Dec 10, 2019

thanks dude!

@thepenguinthatwants
Copy link

au BufNewFile,BufRead Jenkinsfile setf groovy
Didnt seem to work when I added this to my init.vim

@amtux
Copy link

amtux commented Feb 15, 2020

works - thank you!

@mcouthon
Copy link

So simple! 👍

@sunshine69
Copy link

great - thanks

@IdlePhysicist
Copy link

IdlePhysicist commented Jul 7, 2020

Thank you!

@fishi0x01
Copy link

❤️

@pfsquirrel
Copy link

🎸 Rock on!

@jclegras
Copy link

jclegras commented Nov 4, 2020

Simple and clear, thanks

@adamwojt
Copy link

adamwojt commented Jan 11, 2022

@thepenguinthatwants
this worked for me:

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

@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