diff options
author | Heikki Junes <heikki.junes@hut.fi> | 2004-03-02 17:16:16 +0000 |
---|---|---|
committer | Heikki Junes <heikki.junes@hut.fi> | 2004-03-02 17:16:16 +0000 |
commit | ffd6da22eb2332ac33aa06b93f20655f0cf52767 (patch) | |
tree | 3a686245e0b6f98ab2c37f98f58a988449f85192 /vim | |
parent | d5542a3bf646815c77cbb362d1ed14f68421fc39 (diff) |
* vim/ftplugin/lilypond.vim:
* vim/syntax/lilypond.vim: use only local settings with setlocal.
show matching paren in insert mode.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/ftplugin/lilypond.vim | 21 | ||||
-rw-r--r-- | vim/syntax/lilypond.vim | 2 |
2 files changed, 12 insertions, 11 deletions
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 <buffer> <F8> :cn<Return> map <buffer> <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return> " " <F10> menu -:source $VIMRUNTIME/menu.vim -:set wildmenu -:set cpo-=< -:set wcm=<C-Z> -:map <buffer> <F10> :emenu <C-Z> +source $VIMRUNTIME/menu.vim +setlocal wildmenu +setlocal cpo-=< +setlocal wcm=<C-Z> +map <buffer> <F10> :emenu <C-Z> " " <F12> comment region map <buffer> <F12> :g!/%.*/normal 0i%<Return> @@ -51,6 +51,7 @@ map <buffer> <F12> :g!/%.*/normal 0i%<Return> map <buffer> <S-F12> :g/%.*/normal 0x<Return> " " Completions in Insert/Replace-mode with <Ctrl-N> -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 |