annotate runtime/ftplugin/zsh.vim @ 27503:4cea92e99a5a v8.2.4279

patch 8.2.4279: Vim9: cannot change item type with map() after range() Commit: https://github.com/vim/vim/commit/8133018f50bc447570825801e93d5ed67e8dac90 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 1 12:11:58 2022 +0000 patch 8.2.4279: Vim9: cannot change item type with map() after range() Problem: Vim9: cannot change item type with map() after range(). Solution: Split the return type in current type and declared type. (closes #9665)
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Feb 2022 13:15:03 +0100
parents f0d7cb510ce3
children fee9eccee266
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>
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
5 " Latest Revision: 2020-09-01
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
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
21 if executable('zsh') && &shell !~# '/\%(nologin\|false\)$'
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
22 if !has('gui_running') && executable('less')
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
23 command! -buffer -nargs=1 RunHelp silent exe '!MANPAGER= zsh -c "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
24 elseif has('terminal')
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
25 command! -buffer -nargs=1 RunHelp silent exe ':term zsh -c "autoload -Uz run-help; run-help <args>"'
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
26 else
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
27 command! -buffer -nargs=1 RunHelp echo system('zsh -c "autoload -Uz run-help; run-help <args> 2>/dev/null"')
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
28 endif
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
29 if !exists('current_compiler')
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
30 compiler zsh
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
31 endif
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
32 setlocal keywordprg=:RunHelp
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
33 let b:undo_ftplugin .= 'keywordprg<'
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 12968
diff changeset
34 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
35
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
36 let b:match_words = '\<if\>:\<elif\>:\<else\>:\<fi\>'
2698
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
37 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
38 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
39 let b:match_skip = 's:comment\|string\|heredoc\|subst'
b6471224d2af Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
40
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
41 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
42 unlet s:cpo_save