From: Heikki Junes Date: Tue, 2 Mar 2004 17:16:16 +0000 (+0000) Subject: * vim/ftplugin/lilypond.vim: X-Git-Tag: release/2.1.29~26 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ffd6da22eb2332ac33aa06b93f20655f0cf52767;p=lilypond.git * vim/ftplugin/lilypond.vim: * vim/syntax/lilypond.vim: use only local settings with setlocal. show matching paren in insert mode. --- diff --git a/ChangeLog b/ChangeLog index 32368fc300..04bce60516 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-03-02 Heikki Junes + + * vim/ftplugin/lilypond.vim: + * vim/syntax/lilypond.vim: use only local settings with setlocal. + show matching paren in insert mode. + 2004-03-02 Jan Nieuwenhuizen * scm/output-ps.scm (make-title, output-scopes): Further diff --git a/vim/ftplugin/lilypond.vim b/vim/ftplugin/lilypond.vim index 390afe8da1..46470cc6d4 100644 --- a/vim/ftplugin/lilypond.vim +++ b/vim/ftplugin/lilypond.vim @@ -11,8 +11,8 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 -set autoindent -set shiftwidth=2 +setlocal autoindent +setlocal shiftwidth=2 " " some handy key mappings " @@ -38,11 +38,11 @@ map :cn map :w:se makeprg=make\ -k:make " " menu -:source $VIMRUNTIME/menu.vim -:set wildmenu -:set cpo-=< -:set wcm= -:map :emenu +source $VIMRUNTIME/menu.vim +setlocal wildmenu +setlocal cpo-=< +setlocal wcm= +map :emenu " " comment region map :g!/%.*/normal 0i% @@ -51,6 +51,7 @@ map :g!/%.*/normal 0i% map :g/%.*/normal 0x " " Completions in Insert/Replace-mode with -set dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/lilypond.words.el -set complete-=k complete+=k - +setlocal dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/lilypond.words.el +setlocal complete-=k complete+=k +" +setlocal showmatch diff --git a/vim/syntax/lilypond.vim b/vim/syntax/lilypond.vim index 717730cbc6..a69f30c961 100644 --- a/vim/syntax/lilypond.vim +++ b/vim/syntax/lilypond.vim @@ -27,7 +27,7 @@ else endif " Match also parethesis of angle type -set mps+=<:> +setlocal mps+=<:> " Case matters syn case match