annotate runtime/macros/shellmenu.vim @ 6491:8cfbc34ae4aa v7.4.573

updated for version 7.4.573 Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat) Solution: Call get_real_state() instead of using State directly.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jan 2015 16:08:32 +0100
parents 3fc0f57ecb91
children d5136647ce31
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " When you're writing shell scripts and you are in doubt which test to use,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " which shell environment variables are defined, what the syntax of the case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " statement is, and you need to invoke 'man sh'?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Your problems are over now!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Attached is a Vim script file for turning gvim into a shell script editor.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " It may also be used as an example how to use menus in Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Written by: Lennart Schultz <les@dmi.min.dk>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 imenu Stmts.for for in do doneki kk0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 imenu Stmts.case case in ) ;; esacbki k0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 imenu Stmts.if if then fiki kk0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 imenu Stmts.if-else if then else fiki kki kk0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 imenu Stmts.elif elif then ki kk0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 imenu Stmts.while while do doneki kk0elli
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 imenu Stmts.break break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 imenu Stmts.continue continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 imenu Stmts.function () { }ki k0i
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 imenu Stmts.return return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 imenu Stmts.return-true return 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 imenu Stmts.return-false return 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 imenu Stmts.exit exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 imenu Stmts.shift shift
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 imenu Stmts.trap trap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 imenu Test.existence [ -e ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 imenu Test.existence - file [ -f ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 imenu Test.existence - file (not empty) [ -s ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 imenu Test.existence - directory [ -d ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 imenu Test.existence - executable [ -x ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 imenu Test.existence - readable [ -r ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 imenu Test.existence - writable [ -w ]hi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 imenu Test.String is empty [ x = "x$" ]hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 imenu Test.String is not empty [ x != "x$" ]hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 imenu Test.Strings is equal [ "" = "" ]hhhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 imenu Test.Strings is not equal [ "" != "" ]hhhhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 imenu Test.Values is greater than [ -gt ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 imenu Test.Values is greater equal [ -ge ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 imenu Test.Values is equal [ -eq ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 imenu Test.Values is not equal [ -ne ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 imenu Test.Values is less than [ -lt ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 imenu Test.Values is less equal [ -le ]hhhhhhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 imenu ParmSub.Substitute word if parm not set ${:-}hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 imenu ParmSub.Set parm to word if not set ${:=}hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 imenu ParmSub.Substitute word if parm set else nothing ${:+}hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 imenu ParmSub.If parm not set print word and exit ${:?}hhi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 imenu SpShVars.Number of positional parameters ${#}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 imenu SpShVars.All positional parameters (quoted spaces) ${*}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 imenu SpShVars.All positional parameters (unquoted spaces) ${@}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 imenu SpShVars.Flags set ${-}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 imenu SpShVars.Return code of last command ${?}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 imenu SpShVars.Process number of this shell ${$}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 imenu SpShVars.Process number of last background command ${!}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 imenu Environ.HOME ${HOME}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 imenu Environ.PATH ${PATH}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 imenu Environ.CDPATH ${CDPATH}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 imenu Environ.MAIL ${MAIL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 imenu Environ.MAILCHECK ${MAILCHECK}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 imenu Environ.PS1 ${PS1}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 imenu Environ.PS2 ${PS2}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 imenu Environ.IFS ${IFS}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 imenu Environ.SHACCT ${SHACCT}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 imenu Environ.SHELL ${SHELL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 imenu Environ.LC_CTYPE ${LC_CTYPE}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 imenu Environ.LC_MESSAGES ${LC_MESSAGES}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 imenu Builtins.cd cd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 imenu Builtins.echo echo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 imenu Builtins.eval eval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 imenu Builtins.exec exec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 imenu Builtins.export export
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 imenu Builtins.getopts getopts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 imenu Builtins.hash hash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 imenu Builtins.newgrp newgrp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 imenu Builtins.pwd pwd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 imenu Builtins.read read
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 imenu Builtins.readonly readonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 imenu Builtins.return return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 imenu Builtins.times times
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 imenu Builtins.type type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 imenu Builtins.umask umask
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 imenu Builtins.wait wait
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 imenu Set.set set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 imenu Set.unset unset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 imenu Set.mark modified or modified variables set -a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 imenu Set.exit when command returns non-zero exit code set -e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 imenu Set.Disable file name generation set -f
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 imenu Set.remember function commands set -h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 imenu Set.All keyword arguments are placed in the environment set -k
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 imenu Set.Read commands but do not execute them set -n
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 imenu Set.Exit after reading and executing one command set -t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 imenu Set.Treat unset variables as an error when substituting set -u
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 imenu Set.Print shell input lines as they are read set -v
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 imenu Set.Print commands and their arguments as they are executed set -x