Patch 7.4.1676
Problem:    The shellmenu plugin has to be copied or sourced to be used.
Solution:   Turn it into a package.
Files:      runtime/macros/shellmenu.vim, runtime/macros/README.txt,
            runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim, Filelist


*** ../vim-7.4.1675/runtime/macros/shellmenu.vim        2010-05-15 
13:04:01.000000000 +0200
--- runtime/macros/shellmenu.vim        2016-03-28 21:16:08.117032648 +0200
***************
*** 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 <[email protected]>
! 
! imenu Stmts.for       for  in 
do

done ki  kk0elli
! imenu Stmts.case      case  in
) ;;
esac bki         k0elli
! imenu Stmts.if        if   
then

fi ki    kk0elli
! imenu Stmts.if-else   if   
then

else

fi ki    kki     kk0elli
! imenu Stmts.elif      elif   
then

 ki      kk0elli
! imenu Stmts.while     while   
do

done ki  kk0elli
! imenu Stmts.break     break 
! imenu Stmts.continue  continue 
! imenu Stmts.function  () {

} ki     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 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  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
--- 1,3 ----
! " Load the shellmenu package.
! " For those users who were loading the shellmenu plugin from here.
! packadd shellmenu
*** ../vim-7.4.1675/runtime/macros/README.txt   2016-03-28 21:10:31.880430132 
+0200
--- runtime/macros/README.txt   2016-03-28 21:16:33.432776781 +0200
***************
*** 13,20 ****
  
  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
--- 13,18 ----
***************
*** 32,35 ****
--- 30,35 ----
  
  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
*** ../vim-7.4.1675/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim        
1970-01-01 01:00:00.000000000 +0100
--- runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim        2016-03-28 
21:15:36.293354278 +0200
***************
*** 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 <[email protected]>
+ 
+ imenu Stmts.for       for  in 
do

done ki  kk0elli
+ imenu Stmts.case      case  in
) ;;
esac bki         k0elli
+ imenu Stmts.if        if   
then

fi ki    kk0elli
+ imenu Stmts.if-else   if   
then

else

fi ki    kki     kk0elli
+ imenu Stmts.elif      elif   
then

 ki      kk0elli
+ imenu Stmts.while     while   
do

done ki  kk0elli
+ imenu Stmts.break     break 
+ imenu Stmts.continue  continue 
+ imenu Stmts.function  () {

} ki     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 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  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
*** ../vim-7.4.1675/Filelist    2016-03-28 21:10:31.880430132 +0200
--- Filelist    2016-03-28 21:16:44.664663258 +0200
***************
*** 531,536 ****
--- 531,537 ----
                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
*** ../vim-7.4.1675/src/version.c       2016-03-28 21:10:31.884430092 +0200
--- src/version.c       2016-03-28 21:25:42.219200528 +0200
***************
*** 750,751 ****
--- 750,753 ----
  {   /* Add new patch number below this line */
+ /**/
+     1676,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
156. You forget your friend's name but not her e-mail address.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui