comparison runtime/ftplugin/zsh.vim @ 23047:29c5f168c6fd

Update runtime files Commit: https://github.com/vim/vim/commit/23515b4ef7580af8b9d3b964a558ab2007cacda5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 29 14:36:24 2020 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Nov 2020 14:45:04 +0100
parents 847a300aa244
children f0d7cb510ce3
comparison
equal deleted inserted replaced
23046:9a30b28b8154 23047:29c5f168c6fd
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: Zsh shell script 2 " Language: Zsh shell script
3 " Maintainer: Christian Brabandt <cb@256bit.org> 3 " Maintainer: Christian Brabandt <cb@256bit.org>
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5 " Latest Revision: 2020-01-10 5 " Latest Revision: 2020-09-01
6 " License: Vim (see :h license) 6 " License: Vim (see :h license)
7 " Repository: https://github.com/chrisbra/vim-zsh 7 " Repository: https://github.com/chrisbra/vim-zsh
8 8
9 if exists("b:did_ftplugin") 9 if exists("b:did_ftplugin")
10 finish 10 finish
17 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 17 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
18 18
19 let b:undo_ftplugin = "setl com< cms< fo< " 19 let b:undo_ftplugin = "setl com< cms< fo< "
20 20
21 if executable('zsh') 21 if executable('zsh')
22 if !has('gui_running') && executable('less') 22 if !has('gui_running') && executable('less')
23 command! -buffer -nargs=1 RunHelp silent exe '!zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw! 23 command! -buffer -nargs=1 RunHelp silent exe '!MANPAGER= zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
24 elseif has('terminal') 24 elseif has('terminal')
25 command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"' 25 command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
26 else 26 else
27 command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"') 27 command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
28 endif 28 endif
29 if !exists('current_compiler')
30 compiler zsh
31 endif
29 setlocal keywordprg=:RunHelp 32 setlocal keywordprg=:RunHelp
30 setlocal makeprg=zsh\ -n\ --\ %:S 33 let b:undo_ftplugin .= 'keywordprg<'
31 setlocal errorformat=%f:\ line\ %l:\ %m
32 let b:undo_ftplugin .= 'keywordprg< errorformat< makeprg<'
33 endif 34 endif
34 35
35 let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>' 36 let b:match_words = '\<if\>:\<elif\>:\<else\>:\<fi\>'
36 \ . ',\<case\>:^\s*([^)]*):\<esac\>' 37 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
37 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>' 38 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
38 let b:match_skip = 's:comment\|string\|heredoc\|subst' 39 let b:match_skip = 's:comment\|string\|heredoc\|subst'
39 40
40 let &cpo = s:cpo_save 41 let &cpo = s:cpo_save