diff options
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/qf.vim | 6 | ||||
-rw-r--r-- | runtime/ftplugin/zsh.vim | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/runtime/ftplugin/qf.vim b/runtime/ftplugin/qf.vim index f1d09225f0..9d438b520d 100644 --- a/runtime/ftplugin/qf.vim +++ b/runtime/ftplugin/qf.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Vim's quickfix window " Maintainer: Lech Lorens <Lech.Lorens@gmail.com> -" Last Changed: 22 Jul 2010 +" Last Changed: 18 Dec 2010 if exists("b:did_ftplugin") finish @@ -10,7 +10,7 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 -let b:undo_ftplugin = "setl stl<" +let b:undo_ftplugin = "set stl<" " Display the command that produced the list in the quickfix window: -setlocal stl=%q%{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''} +setlocal stl=%t%{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''} diff --git a/runtime/ftplugin/zsh.vim b/runtime/ftplugin/zsh.vim index c6db781711..3970d65cc8 100644 --- a/runtime/ftplugin/zsh.vim +++ b/runtime/ftplugin/zsh.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Zsh shell script " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2008-07-09 +" Latest Revision: 2011-01-23 if exists("b:did_ftplugin") finish @@ -15,5 +15,12 @@ let b:undo_ftplugin = "setl com< cms< fo<" setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql +let b:match_words = + \ &matchpairs + \ . ',\<if\>:\<elif\>:\<else\>:\<fi\>' + \ . ',\<case\>:^\s*([^)]*):\<esac\>' + \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>' +let b:match_skip = 's:comment\|string\|heredoc\|subst' + let &cpo = s:cpo_save unlet s:cpo_save |