From: Heikki Junes Date: Fri, 5 Mar 2004 18:17:34 +0000 (+0000) Subject: mv lilypond-ftpplugin.vim lilypond-ftplugin.vim X-Git-Tag: release/2.1.29~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ae4c400ecf8f5fe468cbe6d35cdabf08b57be297;p=lilypond.git mv lilypond-ftpplugin.vim lilypond-ftplugin.vim --- diff --git a/vim/lilypond-ftplugin.vim b/vim/lilypond-ftplugin.vim new file mode 100644 index 0000000000..46470cc6d4 --- /dev/null +++ b/vim/lilypond-ftplugin.vim @@ -0,0 +1,57 @@ +" LilyPond filetype plugin +" Language: LilyPond (ft=ly) +" Maintainer: Heikki Junes +" Last Change: 2004 March 1 + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + +setlocal autoindent +setlocal shiftwidth=2 +" +" some handy key mappings +" +" save & make and play midi +map :w:se makeprg=lilypond\ -m\ %<:make:!timidity %<.midi +" +" save & make dvi, midi, ps +map :w:se makeprg=lilypond\ %<:make +" +" view ps +map :!gv -watch %<.ps & +" +" view dvi +map :!xdvi %<.dvi & +" +" prev error +map :cp +" +" next error +map :cn +" +" make +map :w:se makeprg=make\ -k:make +" +" menu +source $VIMRUNTIME/menu.vim +setlocal wildmenu +setlocal cpo-=< +setlocal wcm= +map :emenu +" +" comment region +map :g!/%.*/normal 0i% +" +" remove comments in region +map :g/%.*/normal 0x +" +" Completions in Insert/Replace-mode with +setlocal dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/lilypond.words.el +setlocal complete-=k complete+=k +" +setlocal showmatch diff --git a/vim/lilypond-ftpplugin.vim b/vim/lilypond-ftpplugin.vim deleted file mode 100644 index 46470cc6d4..0000000000 --- a/vim/lilypond-ftpplugin.vim +++ /dev/null @@ -1,57 +0,0 @@ -" LilyPond filetype plugin -" Language: LilyPond (ft=ly) -" Maintainer: Heikki Junes -" Last Change: 2004 March 1 - -" Only do this when not done yet for this buffer -if exists("b:did_ftplugin") - finish -endif - -" Don't load another plugin for this buffer -let b:did_ftplugin = 1 - -setlocal autoindent -setlocal shiftwidth=2 -" -" some handy key mappings -" -" save & make and play midi -map :w:se makeprg=lilypond\ -m\ %<:make:!timidity %<.midi -" -" save & make dvi, midi, ps -map :w:se makeprg=lilypond\ %<:make -" -" view ps -map :!gv -watch %<.ps & -" -" view dvi -map :!xdvi %<.dvi & -" -" prev error -map :cp -" -" next error -map :cn -" -" make -map :w:se makeprg=make\ -k:make -" -" menu -source $VIMRUNTIME/menu.vim -setlocal wildmenu -setlocal cpo-=< -setlocal wcm= -map :emenu -" -" comment region -map :g!/%.*/normal 0i% -" -" remove comments in region -map :g/%.*/normal 0x -" -" Completions in Insert/Replace-mode with -setlocal dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/lilypond.words.el -setlocal complete-=k complete+=k -" -setlocal showmatch