]> granicus.if.org Git - vim/commitdiff
patch 7.4.1676 v7.4.1676
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2016 19:26:47 +0000 (21:26 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2016 19:26:47 +0000 (21:26 +0200)
Problem:    The shellmenu plugin has to be copied or sourced to be used.
Solution:   Turn it into a package.

Filelist
runtime/macros/README.txt
runtime/macros/shellmenu.vim
runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim [new file with mode: 0644]
src/version.c

index 65ebe4c4afd6bbd96f0208b8bf41d74939004e08..1af664dc8f4d787dbd812b138a6e00eb9d657b19 100644 (file)
--- a/Filelist
+++ b/Filelist
@@ -531,6 +531,7 @@ RT_ALL =    \
                runtime/pack/dist/opt/matchit/plugin/matchit.vim \
                runtime/pack/dist/opt/matchit/doc/matchit.txt \
                runtime/pack/dist/opt/matchit/doc/tags \
+               runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim \
                runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim \
 
 # runtime files for all distributions without CR-NL translation
index a134112aaf5ccb13812abf28cc65323204a6e307..01635460d4243ad4e3afac41138d29f4e805011c 100644 (file)
@@ -13,8 +13,6 @@ how to use Vi and Vim functionality.
 
 less.sh + less.vim     make Vim work like less (or more)
 
-shellmenu.vim          menus for editing shell scripts in the GUI version
-
 
 This one is only for Unix.
 file_select.vim                macros that make a handy file selector
@@ -32,4 +30,6 @@ packadd! justify      justifying text.
 
 packadd! matchit       makes the % command work better
 
+packadd! shellmenu     menus for editing shell scripts in the GUI version
+
 packadd! swapmouse     swap left and right mouse buttons
index 6175d1d9a64e11c1004d25b144cf89987806ae6b..4eb72a556ab1a3bab4d30967b54cbd15db3cc9ad 100644 (file)
@@ -1,94 +1,3 @@
-" When you're writing shell scripts and you are in doubt which test to use,
-" which shell environment variables are defined, what the syntax of the case
-" statement is, and you need to invoke 'man sh'?
-"
-" Your problems are over now!
-"
-" 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>
-
-imenu Stmts.for        for  in \rdo\r\rdone\eki    \ekk0elli
-imenu Stmts.case       case  in\r) ;;\resac\ebki  \ek0elli
-imenu Stmts.if if   \rthen\r\rfi\eki       \ekk0elli
-imenu Stmts.if-else    if   \rthen\r\relse\r\rfi\eki \ekki    \ekk0elli
-imenu Stmts.elif       elif   \rthen\r\r\eki       \ekk0elli
-imenu Stmts.while      while   \rdo\r\rdone\eki    \ekk0elli
-imenu Stmts.break      break 
-imenu Stmts.continue   continue 
-imenu Stmts.function   () {\r\r}\eki      \ek0i
-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  ]\ehi
-imenu Test.existence\16 -\16 file          [ -f  ]\ehi
-imenu Test.existence\16 -\16 file\16 (not\16 empty)    [ -s  ]\ehi
-imenu Test.existence\16 -\16 directory     [ -d  ]\ehi
-imenu Test.existence\16 -\16 executable    [ -x  ]\ehi
-imenu Test.existence\16 -\16 readable      [ -r  ]\ehi
-imenu Test.existence\16 -\16 writable      [ -w  ]\ehi
-imenu Test.String\16 is\16 empty [ x = "x$" ]\ehhi
-imenu Test.String\16 is\16 not\16 empty [ x != "x$" ]\ehhi
-imenu Test.Strings\16 is\16 equal [ "" = "" ]\ehhhhhhhi
-imenu Test.Strings\16 is\16 not\16 equal [ "" != "" ]\ehhhhhhhhi
-imenu Test.Values\16 is\16 greater\16 than [  -gt  ]\ehhhhhhi
-imenu Test.Values\16 is\16 greater\16 equal [  -ge  ]\ehhhhhhi
-imenu Test.Values\16 is\16 equal [  -eq  ]\ehhhhhhi
-imenu Test.Values\16 is\16 not\16 equal [  -ne  ]\ehhhhhhi
-imenu Test.Values\16 is\16 less\16 than [  -lt  ]\ehhhhhhi
-imenu Test.Values\16 is\16 less\16 equal [  -le  ]\ehhhhhhi
-imenu ParmSub.Substitute\16 word\16 if\16 parm\16 not\16 set ${:-}\ehhi
-imenu ParmSub.Set\16 parm\16 to\16 word\16 if\16 not\16 set ${:=}\ehhi
-imenu ParmSub.Substitute\16 word\16 if\16 parm\16 set\16 else\16 nothing ${:+}\ehhi
-imenu ParmSub.If\16 parm\16 not\16 set\16 print\16 word\16 and\16 exit ${:?}\ehhi
-imenu SpShVars.Number\16 of\16 positional\16 parameters ${#}
-imenu SpShVars.All\16 positional\16 parameters\16 (quoted\16 spaces) ${*}
-imenu SpShVars.All\16 positional\16 parameters\16 (unquoted\16 spaces) ${@}
-imenu SpShVars.Flags\16 set ${-}
-imenu SpShVars.Return\16 code\16 of\16 last\16 command ${?}
-imenu SpShVars.Process\16 number\16 of\16 this\16 shell ${$}
-imenu SpShVars.Process\16 number\16 of\16 last\16 background\16 command ${!}
-imenu Environ.HOME ${HOME}
-imenu Environ.PATH ${PATH}
-imenu Environ.CDPATH ${CDPATH}
-imenu Environ.MAIL ${MAIL}
-imenu Environ.MAILCHECK ${MAILCHECK}
-imenu Environ.PS1 ${PS1}
-imenu Environ.PS2 ${PS2}
-imenu Environ.IFS ${IFS}
-imenu Environ.SHACCT ${SHACCT}
-imenu Environ.SHELL ${SHELL}
-imenu Environ.LC_CTYPE ${LC_CTYPE}
-imenu Environ.LC_MESSAGES ${LC_MESSAGES}
-imenu Builtins.cd cd
-imenu Builtins.echo echo
-imenu Builtins.eval eval
-imenu Builtins.exec exec
-imenu Builtins.export export
-imenu Builtins.getopts getopts
-imenu Builtins.hash hash
-imenu Builtins.newgrp newgrp
-imenu Builtins.pwd pwd
-imenu Builtins.read read
-imenu Builtins.readonly readonly
-imenu Builtins.return return
-imenu Builtins.times times
-imenu Builtins.type type
-imenu Builtins.umask umask
-imenu Builtins.wait wait
-imenu Set.set set
-imenu Set.unset unset
-imenu Set.mark\16 modified\16 or\16 modified\16 variables set -a
-imenu Set.exit\16 when\16 command\16 returns\16 non-zero\16 exit\16 code set -e
-imenu Set.Disable\16 file\16 name\16 generation set -f
-imenu Set.remember\16 function\16 commands set -h
-imenu Set.All\16 keyword\16 arguments\16 are\16 placed\16 in\16 the\16 environment set -k
-imenu Set.Read\16 commands\16 but\16 do\16 not\16 execute\16 them set -n
-imenu Set.Exit\16 after\16 reading\16 and\16 executing\16 one\16 command set -t
-imenu Set.Treat\16 unset\16 variables\16 as\16 an\16 error\16 when\16 substituting set -u
-imenu Set.Print\16 shell\16 input\16 lines\16 as\16 they\16 are\16 read set -v
-imenu Set.Print\16 commands\16 and\16 their\16 arguments\16 as\16 they\16 are\16 executed set -x
+" Load the shellmenu package.
+" For those users who were loading the shellmenu plugin from here.
+packadd shellmenu
diff --git a/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim b/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim
new file mode 100644 (file)
index 0000000..6175d1d
--- /dev/null
@@ -0,0 +1,94 @@
+" When you're writing shell scripts and you are in doubt which test to use,
+" which shell environment variables are defined, what the syntax of the case
+" statement is, and you need to invoke 'man sh'?
+"
+" Your problems are over now!
+"
+" 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>
+
+imenu Stmts.for        for  in \rdo\r\rdone\eki    \ekk0elli
+imenu Stmts.case       case  in\r) ;;\resac\ebki  \ek0elli
+imenu Stmts.if if   \rthen\r\rfi\eki       \ekk0elli
+imenu Stmts.if-else    if   \rthen\r\relse\r\rfi\eki \ekki    \ekk0elli
+imenu Stmts.elif       elif   \rthen\r\r\eki       \ekk0elli
+imenu Stmts.while      while   \rdo\r\rdone\eki    \ekk0elli
+imenu Stmts.break      break 
+imenu Stmts.continue   continue 
+imenu Stmts.function   () {\r\r}\eki      \ek0i
+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  ]\ehi
+imenu Test.existence\16 -\16 file          [ -f  ]\ehi
+imenu Test.existence\16 -\16 file\16 (not\16 empty)    [ -s  ]\ehi
+imenu Test.existence\16 -\16 directory     [ -d  ]\ehi
+imenu Test.existence\16 -\16 executable    [ -x  ]\ehi
+imenu Test.existence\16 -\16 readable      [ -r  ]\ehi
+imenu Test.existence\16 -\16 writable      [ -w  ]\ehi
+imenu Test.String\16 is\16 empty [ x = "x$" ]\ehhi
+imenu Test.String\16 is\16 not\16 empty [ x != "x$" ]\ehhi
+imenu Test.Strings\16 is\16 equal [ "" = "" ]\ehhhhhhhi
+imenu Test.Strings\16 is\16 not\16 equal [ "" != "" ]\ehhhhhhhhi
+imenu Test.Values\16 is\16 greater\16 than [  -gt  ]\ehhhhhhi
+imenu Test.Values\16 is\16 greater\16 equal [  -ge  ]\ehhhhhhi
+imenu Test.Values\16 is\16 equal [  -eq  ]\ehhhhhhi
+imenu Test.Values\16 is\16 not\16 equal [  -ne  ]\ehhhhhhi
+imenu Test.Values\16 is\16 less\16 than [  -lt  ]\ehhhhhhi
+imenu Test.Values\16 is\16 less\16 equal [  -le  ]\ehhhhhhi
+imenu ParmSub.Substitute\16 word\16 if\16 parm\16 not\16 set ${:-}\ehhi
+imenu ParmSub.Set\16 parm\16 to\16 word\16 if\16 not\16 set ${:=}\ehhi
+imenu ParmSub.Substitute\16 word\16 if\16 parm\16 set\16 else\16 nothing ${:+}\ehhi
+imenu ParmSub.If\16 parm\16 not\16 set\16 print\16 word\16 and\16 exit ${:?}\ehhi
+imenu SpShVars.Number\16 of\16 positional\16 parameters ${#}
+imenu SpShVars.All\16 positional\16 parameters\16 (quoted\16 spaces) ${*}
+imenu SpShVars.All\16 positional\16 parameters\16 (unquoted\16 spaces) ${@}
+imenu SpShVars.Flags\16 set ${-}
+imenu SpShVars.Return\16 code\16 of\16 last\16 command ${?}
+imenu SpShVars.Process\16 number\16 of\16 this\16 shell ${$}
+imenu SpShVars.Process\16 number\16 of\16 last\16 background\16 command ${!}
+imenu Environ.HOME ${HOME}
+imenu Environ.PATH ${PATH}
+imenu Environ.CDPATH ${CDPATH}
+imenu Environ.MAIL ${MAIL}
+imenu Environ.MAILCHECK ${MAILCHECK}
+imenu Environ.PS1 ${PS1}
+imenu Environ.PS2 ${PS2}
+imenu Environ.IFS ${IFS}
+imenu Environ.SHACCT ${SHACCT}
+imenu Environ.SHELL ${SHELL}
+imenu Environ.LC_CTYPE ${LC_CTYPE}
+imenu Environ.LC_MESSAGES ${LC_MESSAGES}
+imenu Builtins.cd cd
+imenu Builtins.echo echo
+imenu Builtins.eval eval
+imenu Builtins.exec exec
+imenu Builtins.export export
+imenu Builtins.getopts getopts
+imenu Builtins.hash hash
+imenu Builtins.newgrp newgrp
+imenu Builtins.pwd pwd
+imenu Builtins.read read
+imenu Builtins.readonly readonly
+imenu Builtins.return return
+imenu Builtins.times times
+imenu Builtins.type type
+imenu Builtins.umask umask
+imenu Builtins.wait wait
+imenu Set.set set
+imenu Set.unset unset
+imenu Set.mark\16 modified\16 or\16 modified\16 variables set -a
+imenu Set.exit\16 when\16 command\16 returns\16 non-zero\16 exit\16 code set -e
+imenu Set.Disable\16 file\16 name\16 generation set -f
+imenu Set.remember\16 function\16 commands set -h
+imenu Set.All\16 keyword\16 arguments\16 are\16 placed\16 in\16 the\16 environment set -k
+imenu Set.Read\16 commands\16 but\16 do\16 not\16 execute\16 them set -n
+imenu Set.Exit\16 after\16 reading\16 and\16 executing\16 one\16 command set -t
+imenu Set.Treat\16 unset\16 variables\16 as\16 an\16 error\16 when\16 substituting set -u
+imenu Set.Print\16 shell\16 input\16 lines\16 as\16 they\16 are\16 read set -v
+imenu Set.Print\16 commands\16 and\16 their\16 arguments\16 as\16 they\16 are\16 executed set -x
index 70a5969a93b1035d7b86113a62a8a28c1e3ba149..a009d8cf83ef7d24316bc62d1c6c62635886e5d8 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1676,
 /**/
     1675,
 /**/