GNU LilyPond program usage: 2.2.2 Vim mode

### 2.2.2 Vim mode

For VIM, a ‘`vimrc`’ is supplied, along with syntax coloring tools. A Vim mode for entering music and running LilyPond is contained in the source archive in `$VIM` directory.

The LilyPond file type is detected if the file ‘`~/.vim/filetype.vim`’ has the following content

>     if exists("did_load_filetypes")
>       finish
>     endif
>     augroup filetypedetect
>       au! BufNewFile,BufRead *.ly,*.ily           setf lilypond
>     augroup END

Please include this path by appending the following line to your ‘`~/.vimrc`’

>     set runtimepath+=/usr/local/share/lilypond/${LILYPOND_VERSION}/vim/

where ${LILYPOND_VERSION} is your LilyPond version. If LilyPond was not installed in ‘`/usr/local/`’, then change this path accordingly.

Other languages: français, español, deutsch.

#### Application Usage