diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-11 13:29:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-11 13:29:40 +0000 |
commit | 92f645bef7bb817822d115291fe584b15647d577 (patch) | |
tree | abe5aff4cbc059b059ac0eccbb977e5949ab195d /runtime/pack/dist/opt | |
parent | bece72785dcbeba00e6424d78a941450fda78929 (diff) |
Update runtime files. (closes #9741)
Diffstat (limited to 'runtime/pack/dist/opt')
-rw-r--r-- | runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim | 102 |
1 files changed, 56 insertions, 46 deletions
diff --git a/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim b/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim index 6175d1d9a6..b53261f097 100644 --- a/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim +++ b/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim @@ -7,51 +7,57 @@ " Attached is a Vim script file for turning gvim into a shell script editor. " It may also be used as an example how to use menus in Vim. " -" Written by: Lennart Schultz <les@dmi.min.dk> +" Maintainer: Ada (Haowen) Yu <me@yuhaowen.com> +" Original author: Lennart Schultz <les@dmi.min.dk> (mail unreachable) -imenu Stmts.for for in
do
doneki kk0elli -imenu Stmts.case case in
) ;;
esacbki k0elli -imenu Stmts.if if
then
fiki kk0elli -imenu Stmts.if-else if
then
else
fiki kki kk0elli -imenu Stmts.elif elif
then
ki kk0elli -imenu Stmts.while while
do
doneki kk0elli +" Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise +" <CR> would not be recognized. See ":help 'cpoptions'". +let s:cpo_save = &cpo +set cpo&vim + +imenu Stmts.for for in <CR>do<CR><CR>done<esc>ki <esc>kk0elli +imenu Stmts.case case in<CR>) ;;<CR>esac<esc>bki <esc>k0elli +imenu Stmts.if if <CR>then<CR><CR>fi<esc>ki <esc>kk0elli +imenu Stmts.if-else if <CR>then<CR><CR>else<CR><CR>fi<esc>ki <esc>kki <esc>kk0elli +imenu Stmts.elif elif <CR>then<CR><CR><esc>ki <esc>kk0elli +imenu Stmts.while while do<CR><CR>done<esc>ki <esc>kk0elli imenu Stmts.break break imenu Stmts.continue continue -imenu Stmts.function () {
}ki k0i +imenu Stmts.function () {<CR><CR>}<esc>ki <esc>k0i imenu Stmts.return return imenu Stmts.return-true return 0 imenu Stmts.return-false return 1 imenu Stmts.exit exit imenu Stmts.shift shift imenu Stmts.trap trap -imenu Test.existence [ -e ]hi -imenu Test.existence - file [ -f ]hi -imenu Test.existence - file (not empty) [ -s ]hi -imenu Test.existence - directory [ -d ]hi -imenu Test.existence - executable [ -x ]hi -imenu Test.existence - readable [ -r ]hi -imenu Test.existence - writable [ -w ]hi -imenu Test.String is empty [ x = "x$" ]hhi -imenu Test.String is not empty [ x != "x$" ]hhi -imenu Test.Strings is equal [ "" = "" ]hhhhhhhi -imenu Test.Strings is not equal [ "" != "" ]hhhhhhhhi -imenu Test.Values is greater than [ -gt ]hhhhhhi -imenu Test.Values is greater equal [ -ge ]hhhhhhi -imenu Test.Values is equal [ -eq ]hhhhhhi -imenu Test.Values is not equal [ -ne ]hhhhhhi -imenu Test.Values is less than [ -lt ]hhhhhhi -imenu Test.Values is less equal [ -le ]hhhhhhi -imenu ParmSub.Substitute word if parm not set ${:-}hhi -imenu ParmSub.Set parm to word if not set ${:=}hhi -imenu ParmSub.Substitute word if parm set else nothing ${:+}hhi -imenu ParmSub.If parm not set print word and exit ${:?}hhi -imenu SpShVars.Number of positional parameters ${#} -imenu SpShVars.All positional parameters (quoted spaces) ${*} -imenu SpShVars.All positional parameters (unquoted spaces) ${@} -imenu SpShVars.Flags set ${-} -imenu SpShVars.Return code of last command ${?} -imenu SpShVars.Process number of this shell ${$} -imenu SpShVars.Process number of last background command ${!} +imenu Test.existence [ -e ]<esc>hi +imenu Test.existence\ -\ file [ -f ]<esc>hi +imenu Test.existence\ -\ file\ (not\ empty) [ -s ]<esc>hi +imenu Test.existence\ -\ directory [ -d ]<esc>hi +imenu Test.existence\ -\ executable [ -x ]<esc>hi +imenu Test.existence\ -\ readable [ -r ]<esc>hi +imenu Test.existence\ -\ writable [ -w ]<esc>hi +imenu Test.String\ is\ empty [ x = "x$" ]<esc>hhi +imenu Test.String\ is\ not\ empty [ x != "x$" ]<esc>hhi +imenu Test.Strings\ is\ equal [ "" = "" ]<esc>hhhhhhhi +imenu Test.Strings\ is\ not\ equal [ "" != "" ]<esc>hhhhhhhhi +imenu Test.Values\ is\ greater\ than [ -gt ]<esc>hhhhhhi +imenu Test.Values\ is\ greater\ equal [ -ge ]<esc>hhhhhhi +imenu Test.Values\ is\ equal [ -eq ]<esc>hhhhhhi +imenu Test.Values\ is\ not\ equal [ -ne ]<esc>hhhhhhi +imenu Test.Values\ is\ less\ than [ -lt ]<esc>hhhhhhi +imenu Test.Values\ is\ less\ equal [ -le ]<esc>hhhhhhi +imenu ParmSub.Substitute\ word\ if\ parm\ not\ set ${:-}<esc>hhi +imenu ParmSub.Set\ parm\ to\ word\ if\ not\ set ${:=}<esc>hhi +imenu ParmSub.Substitute\ word\ if\ parm\ set\ else\ nothing ${:+}<esc>hhi +imenu ParmSub.If\ parm\ not\ set\ print\ word\ and\ exit ${:?}<esc>hhi +imenu SpShVars.Number\ of\ positional\ parameters ${#} +imenu SpShVars.All\ positional\ parameters\ (quoted\ spaces) ${*} +imenu SpShVars.All\ positional\ parameters\ (unquoted\ spaces) ${@} +imenu SpShVars.Flags\ set ${-} +imenu SpShVars.Return\ code\ of\ last\ command ${?} +imenu SpShVars.Process\ number\ of\ this\ shell ${$} +imenu SpShVars.Process\ number\ of\ last\ background\ command ${!} imenu Environ.HOME ${HOME} imenu Environ.PATH ${PATH} imenu Environ.CDPATH ${CDPATH} @@ -82,13 +88,17 @@ imenu Builtins.umask umask imenu Builtins.wait wait imenu Set.set set imenu Set.unset unset -imenu Set.mark modified or modified variables set -a -imenu Set.exit when command returns non-zero exit code set -e -imenu Set.Disable file name generation set -f -imenu Set.remember function commands set -h -imenu Set.All keyword arguments are placed in the environment set -k -imenu Set.Read commands but do not execute them set -n -imenu Set.Exit after reading and executing one command set -t -imenu Set.Treat unset variables as an error when substituting set -u -imenu Set.Print shell input lines as they are read set -v -imenu Set.Print commands and their arguments as they are executed set -x +imenu Set.mark\ modified\ or\ modified\ variables set -a +imenu Set.exit\ when\ command\ returns\ non-zero\ exit\ code set -e +imenu Set.Disable\ file\ name\ generation set -f +imenu Set.remember\ function\ commands set -h +imenu Set.All\ keyword\ arguments\ are\ placed\ in\ the\ environment set -k +imenu Set.Read\ commands\ but\ do\ not\ execute\ them set -n +imenu Set.Exit\ after\ reading\ and\ executing\ one\ command set -t +imenu Set.Treat\ unset\ variables\ as\ an\ error\ when\ substituting set -u +imenu Set.Print\ shell\ input\ lines\ as\ they\ are\ read set -v +imenu Set.Print\ commands\ and\ their\ arguments\ as\ they\ are\ executed set -x + +" Restore the previous value of 'cpoptions'. +let &cpo = s:cpo_save +unlet s:cpo_save |