Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save richardsonlima/fd42bf8f34ca4444cc828a34c8093f4c to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

This is very useful 👍
Thanks!

@Lemmah

Lemmah commented May 19, 2019

Copy link
Copy Markdown

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

@aryklein

aryklein commented Oct 7, 2019

Copy link
Copy Markdown

Thanks 👍

@mpwsh

mpwsh commented Dec 10, 2019

Copy link
Copy Markdown

thanks dude!

@thepenguinthatwants

Copy link
Copy Markdown

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

@amtux

amtux commented Feb 15, 2020

Copy link
Copy Markdown

works - thank you!

@mcouthon

Copy link
Copy Markdown

So simple! 👍

@sunshine69

Copy link
Copy Markdown

great - thanks

@IdlePhysicist

IdlePhysicist commented Jul 7, 2020

Copy link
Copy Markdown

Thank you!

@fishi0x01

Copy link
Copy Markdown

❤️

@pfsquirrel

Copy link
Copy Markdown

🎸 Rock on!

@jclegras

jclegras commented Nov 4, 2020

Copy link
Copy Markdown

Simple and clear, thanks

@adamwojt

adamwojt commented Jan 11, 2022

Copy link
Copy Markdown

@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
Copy Markdown

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

@cckcoder

Copy link
Copy Markdown

Thx so much--it work 👍

@lirem

lirem commented Oct 31, 2022

Copy link
Copy Markdown

It's really works, thank you :)

@mbenhalima

Copy link
Copy Markdown

@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