summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Junes <heikki.junes@hut.fi>2004-03-26 23:11:28 +0000
committerHeikki Junes <heikki.junes@hut.fi>2004-03-26 23:11:28 +0000
commit18c88a4738e736e7d9dcad0cc6347e05d21b6ce7 (patch)
tree54a772f79ee6c2677243fbbfc9f56a78161ed1aa
parentd327fce8217c1536957065f7ccf0d21447bea3f8 (diff)
small fixes.
-rw-r--r--ChangeLog4
-rw-r--r--vim/lilypond-indent.vim4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 121984fe68..20d352c56d 100644
--- 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
diff --git a/vim/lilypond-indent.vim b/vim/lilypond-indent.vim
index fd2144b2fd..25d92e9baa 100644
--- a/vim/lilypond-indent.vim
+++ b/vim/lilypond-indent.vim
@@ -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