Next: , Previous: Emacs mode, Up: Text editor support


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           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.

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: espaƱol, deutsch.