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.

Cette page documente LilyPond-2.11.58 (branche de développement).

Rapportez toute anomalie en français à lilypond-user-fr@gnu.org ou en anglais à http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

Vos suggestions à propos de la documentation sont les bienvenues.

Autres langues : español, deutsch.