]> git.donarmstrong.com Git - lilypond.git/blobdiff - vim/lilypond-indent.vim
(local-uninstall): remove
[lilypond.git] / vim / lilypond-indent.vim
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