Friday, January 8, 2016

How to make Vim highlight Gradle syntax

This instruction was tested by me in OS X:

1. Edit/create file ~/.vimrc. Make sure that it contains following lines:
filetype plugin indent on

syntax on

2. Download Groovy for Vim configuration from here and save it to $HOME/.vim/syntax/ folder (create if missing): http://www.vim.org/scripts/script.php?script_id=945

3. Add following line to $HOME/.vim/filetype.vim file (create is missing): 
au BufNewFile,BufRead *.gradle  setf groovy 

4. Re-open your Vim

No comments:

Post a Comment