]> git.donarmstrong.com Git - lilypond.git/commitdiff
small fixes.
authorHeikki Junes <heikki.junes@hut.fi>
Fri, 26 Mar 2004 23:11:28 +0000 (23:11 +0000)
committerHeikki Junes <heikki.junes@hut.fi>
Fri, 26 Mar 2004 23:11:28 +0000 (23:11 +0000)
ChangeLog
vim/lilypond-indent.vim

index 121984fe68d84e1a7ccef1268a956ab594f0706a..20d352c56d25b9dc3c7651ec8cde0f2eaef7f1d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-27  Heikki Junes  <hjunes@cc.hut.fi>
+
+       * vim/lilypond-indent.vim: small fixes.
+
 2004-03-26  Mats Bengtsson  <mabe@drongo.s3.kth.se>
 
        * Documentation/user/notation.itely (Entering lyrics): Add example
index fd2144b2fd5dce5cc9cba33e984efa93957e1702..25d92e9baaaac42bae678df6ddd6d39692e2d1da 100644 (file)
@@ -12,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")
@@ -34,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