Skip to content

Instantly share code, notes, and snippets.

@uarun
Created August 3, 2011 19:32
Show Gist options
  • Select an option

  • Save uarun/1123563 to your computer and use it in GitHub Desktop.

Select an option

Save uarun/1123563 to your computer and use it in GitHub Desktop.
Gradle syntax highlighting in vim
# ~/.vim/filetype.vim
au BufNewFile,BufRead *.gradle setf groovy
@georgik

georgik commented Nov 22, 2013

Copy link
Copy Markdown

I was testing it with Windows + Vim 7.4. ~/.vim/filetype.vim was not working.
Correct location was ~/.vimrc file

Thank you a lot for useful hint.

@arcseldon

Copy link
Copy Markdown

worked a charm, thank you.

@johnykov

Copy link
Copy Markdown

cool

@ayubmalik

Copy link
Copy Markdown

Simple yet effective. Thanks.

@friederbluemle

Copy link
Copy Markdown

Thanks!

@helio-frota

Copy link
Copy Markdown

Thanks!

@sccu

sccu commented Mar 4, 2015

Copy link
Copy Markdown

Thanks!!

@bristy

bristy commented Jul 16, 2015

Copy link
Copy Markdown

worked for me . Put it in .vimrc in mac. thanks :)

@dcbljack

Copy link
Copy Markdown

the gift that keeps on giving for vim novices!

@searover

searover commented Apr 2, 2016

Copy link
Copy Markdown

nice!

@mhewedy

mhewedy commented Sep 23, 2016

Copy link
Copy Markdown

worked in .vimrc

@jaytaylor

Copy link
Copy Markdown

If the above doesn't work for you (it didn't for me), it may be worth trying one of the originals from vimscripts.org: https://bitbucket.org/sw-samuraj/vim-gradle.

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