X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2Flilypond-indent.vim;h=25d92e9baaaac42bae678df6ddd6d39692e2d1da;hb=0123135eb826eb4d2cb7167ca00aa6dc4515429c;hp=ea2523a1355593185f94427d3a883c26e01a1f26;hpb=e657f59b0c629a4274cf0cea0eb6694e92ed4b5e;p=lilypond.git diff --git a/vim/lilypond-indent.vim b/vim/lilypond-indent.vim index ea2523a135..25d92e9baa 100644 --- a/vim/lilypond-indent.vim +++ b/vim/lilypond-indent.vim @@ -2,7 +2,9 @@ " Language: LilyPond " Maintainer: Heikki Junes " Last Change: 2004 Mar 01 - +" +" Installed As: vim/indent/lilypond.vim +" " Only load this indent file when no other was loaded. if exists("b:did_indent") finish @@ -10,7 +12,7 @@ endif let b:did_indent = 1 setlocal indentexpr=GetLilyPondIndent() -setlocal indentkeys+==},>>,!^F +setlocal indentkeys=o,O,},>>,!^F " Only define the function once. if exists("*GetLilyPondIndent") @@ -32,7 +34,7 @@ function GetLilyPondIndent() endif "Check if a block was ended: '}' or '>>' is the first non-blank character of the current line. - elseif getline(v:lnum) =~ '^\s*\(}\|>>\)' + if getline(v:lnum) =~ '^\s*\(}\|>>\)' let ind = ind - &sw endif