diff options
author | Heikki Junes <heikki.junes@hut.fi> | 2004-03-11 22:52:08 +0000 |
---|---|---|
committer | Heikki Junes <heikki.junes@hut.fi> | 2004-03-11 22:52:08 +0000 |
commit | e657f59b0c629a4274cf0cea0eb6694e92ed4b5e (patch) | |
tree | da84c07c7a21afddc09e296514c22ab3ad640cd6 /vim | |
parent | 845257fa959b66d0579fb78a26bfcaecb43d645c (diff) |
change <TAB> to <C-F> (default).
Diffstat (limited to 'vim')
-rw-r--r-- | vim/lilypond-indent.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/lilypond-indent.vim b/vim/lilypond-indent.vim index 1f6c681e3b..ea2523a135 100644 --- a/vim/lilypond-indent.vim +++ b/vim/lilypond-indent.vim @@ -10,7 +10,7 @@ endif let b:did_indent = 1 setlocal indentexpr=GetLilyPondIndent() -setlocal indentkeys+==},>>,!<TAB> +setlocal indentkeys+==},>>,!^F " Only define the function once. if exists("*GetLilyPondIndent") @@ -24,15 +24,15 @@ function GetLilyPondIndent() "Find a non-blank line above the current line. let lnum = prevnonblank(v:lnum - 1) - "Check if a block was started: '{' or '<<' is the last non-blank character of the line. + "Check if a block was started: '{' or '<<' is the last non-blank character of the previous line. if getline(lnum) =~ '^.*\({\|<<\)\s*$' let ind = indent(lnum) + &sw else let ind = indent(lnum) endif - "Check if a block was ended: '}' or '>>' is the first non-blank character of the line. - if getline(v:lnum) =~ '^\s*\(}\|>>\)' + "Check if a block was ended: '}' or '>>' is the first non-blank character of the current line. + elseif getline(v:lnum) =~ '^\s*\(}\|>>\)' let ind = ind - &sw endif |