annotate runtime/ftplugin/zsh.vim @ 19835:b56266f40a71

Added tag v8.2.0473 for changeset 2ef25a007bb72e7e9de3019e3fa167f3f325c62d
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Mar 2020 15:15:05 +0200
parents 847a300aa244
children 29c5f168c6fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
11914
4f7081eb1e26 Updated runtime files
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
2 " Language: Zsh shell script
4f7081eb1e26 Updated runtime files
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
3 " Maintainer: Christian Brabandt <cb@256bit.org>
4f7081eb1e26 Updated runtime files
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
5 " Latest Revision: 2020-01-10
11914
4f7081eb1e26 Updated runtime files
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
6 " License: Vim (see :h license)
4f7081eb1e26 Updated runtime files
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
7 " Repository: https://github.com/chrisbra/vim-zsh
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
8
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
9 if exists("b:did_ftplugin")
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
10 finish
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
11 endif
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
13
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
14 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
15 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
16
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
17 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
18
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
19 let b:undo_ftplugin = "setl com< cms< fo< "
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
20
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
21 if executable('zsh')
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
22 if !has('gui_running') && executable('less')
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
23 command! -buffer -nargs=1 RunHelp silent exe '!zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
24 elseif has('terminal')
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
25 command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
26 else
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
27 command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
28 endif
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
29 setlocal keywordprg=:RunHelp
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
30 setlocal makeprg=zsh\ -n\ --\ %:S
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
31 setlocal errorformat=%f:\ line\ %l:\ %m
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
32 let b:undo_ftplugin .= 'keywordprg< errorformat< makeprg<'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
33 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
34
12968
45987b1b77dc Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 11914
diff changeset
35 let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>'
2698
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
36 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
37 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
38 let b:match_skip = 's:comment\|string\|heredoc\|subst'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
39
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
40 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
41 unlet s:cpo_save