From 18c88a4738e736e7d9dcad0cc6347e05d21b6ce7 Mon Sep 17 00:00:00 2001 From: Heikki Junes Date: Fri, 26 Mar 2004 23:11:28 +0000 Subject: [PATCH] small fixes. --- ChangeLog | 4 ++++ vim/lilypond-indent.vim | 4 ++-- 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 + + * vim/lilypond-indent.vim: small fixes. + 2004-03-26 Mats Bengtsson * 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 -- 2.39.5