aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c82
1 files changed, 41 insertions, 41 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 015938585..116022c93 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -24,10 +24,10 @@
24//config: bool "vi (22 kb)" 24//config: bool "vi (22 kb)"
25//config: default y 25//config: default y
26//config: help 26//config: help
27//config: 'vi' is a text editor. More specifically, it is the One True 27//config: 'vi' is a text editor. More specifically, it is the One True
28//config: text editor <grin>. It does, however, have a rather steep 28//config: text editor <grin>. It does, however, have a rather steep
29//config: learning curve. If you are not already comfortable with 'vi' 29//config: learning curve. If you are not already comfortable with 'vi'
30//config: you may wish to use something else. 30//config: you may wish to use something else.
31//config: 31//config:
32//config:config FEATURE_VI_MAX_LEN 32//config:config FEATURE_VI_MAX_LEN
33//config: int "Maximum screen width" 33//config: int "Maximum screen width"
@@ -35,77 +35,77 @@
35//config: default 4096 35//config: default 4096
36//config: depends on VI 36//config: depends on VI
37//config: help 37//config: help
38//config: Contrary to what you may think, this is not eating much. 38//config: Contrary to what you may think, this is not eating much.
39//config: Make it smaller than 4k only if you are very limited on memory. 39//config: Make it smaller than 4k only if you are very limited on memory.
40//config: 40//config:
41//config:config FEATURE_VI_8BIT 41//config:config FEATURE_VI_8BIT
42//config: bool "Allow to display 8-bit chars (otherwise shows dots)" 42//config: bool "Allow to display 8-bit chars (otherwise shows dots)"
43//config: default n 43//config: default n
44//config: depends on VI 44//config: depends on VI
45//config: help 45//config: help
46//config: If your terminal can display characters with high bit set, 46//config: If your terminal can display characters with high bit set,
47//config: you may want to enable this. Note: vi is not Unicode-capable. 47//config: you may want to enable this. Note: vi is not Unicode-capable.
48//config: If your terminal combines several 8-bit bytes into one character 48//config: If your terminal combines several 8-bit bytes into one character
49//config: (as in Unicode mode), this will not work properly. 49//config: (as in Unicode mode), this will not work properly.
50//config: 50//config:
51//config:config FEATURE_VI_COLON 51//config:config FEATURE_VI_COLON
52//config: bool "Enable \":\" colon commands (no \"ex\" mode)" 52//config: bool "Enable \":\" colon commands (no \"ex\" mode)"
53//config: default y 53//config: default y
54//config: depends on VI 54//config: depends on VI
55//config: help 55//config: help
56//config: Enable a limited set of colon commands. This does not 56//config: Enable a limited set of colon commands. This does not
57//config: provide an "ex" mode. 57//config: provide an "ex" mode.
58//config: 58//config:
59//config:config FEATURE_VI_YANKMARK 59//config:config FEATURE_VI_YANKMARK
60//config: bool "Enable yank/put commands and mark cmds" 60//config: bool "Enable yank/put commands and mark cmds"
61//config: default y 61//config: default y
62//config: depends on VI 62//config: depends on VI
63//config: help 63//config: help
64//config: This enables you to use yank and put, as well as mark. 64//config: This enables you to use yank and put, as well as mark.
65//config: 65//config:
66//config:config FEATURE_VI_SEARCH 66//config:config FEATURE_VI_SEARCH
67//config: bool "Enable search and replace cmds" 67//config: bool "Enable search and replace cmds"
68//config: default y 68//config: default y
69//config: depends on VI 69//config: depends on VI
70//config: help 70//config: help
71//config: Select this if you wish to be able to do search and replace. 71//config: Select this if you wish to be able to do search and replace.
72//config: 72//config:
73//config:config FEATURE_VI_REGEX_SEARCH 73//config:config FEATURE_VI_REGEX_SEARCH
74//config: bool "Enable regex in search and replace" 74//config: bool "Enable regex in search and replace"
75//config: default n # Uses GNU regex, which may be unavailable. FIXME 75//config: default n # Uses GNU regex, which may be unavailable. FIXME
76//config: depends on FEATURE_VI_SEARCH 76//config: depends on FEATURE_VI_SEARCH
77//config: help 77//config: help
78//config: Use extended regex search. 78//config: Use extended regex search.
79//config: 79//config:
80//config:config FEATURE_VI_USE_SIGNALS 80//config:config FEATURE_VI_USE_SIGNALS
81//config: bool "Catch signals" 81//config: bool "Catch signals"
82//config: default y 82//config: default y
83//config: depends on VI 83//config: depends on VI
84//config: help 84//config: help
85//config: Selecting this option will make vi signal aware. This will support 85//config: Selecting this option will make vi signal aware. This will support
86//config: SIGWINCH to deal with Window Changes, catch ^Z and ^C and alarms. 86//config: SIGWINCH to deal with Window Changes, catch ^Z and ^C and alarms.
87//config: 87//config:
88//config:config FEATURE_VI_DOT_CMD 88//config:config FEATURE_VI_DOT_CMD
89//config: bool "Remember previous cmd and \".\" cmd" 89//config: bool "Remember previous cmd and \".\" cmd"
90//config: default y 90//config: default y
91//config: depends on VI 91//config: depends on VI
92//config: help 92//config: help
93//config: Make vi remember the last command and be able to repeat it. 93//config: Make vi remember the last command and be able to repeat it.
94//config: 94//config:
95//config:config FEATURE_VI_READONLY 95//config:config FEATURE_VI_READONLY
96//config: bool "Enable -R option and \"view\" mode" 96//config: bool "Enable -R option and \"view\" mode"
97//config: default y 97//config: default y
98//config: depends on VI 98//config: depends on VI
99//config: help 99//config: help
100//config: Enable the read-only command line option, which allows the user to 100//config: Enable the read-only command line option, which allows the user to
101//config: open a file in read-only mode. 101//config: open a file in read-only mode.
102//config: 102//config:
103//config:config FEATURE_VI_SETOPTS 103//config:config FEATURE_VI_SETOPTS
104//config: bool "Enable settable options, ai ic showmatch" 104//config: bool "Enable settable options, ai ic showmatch"
105//config: default y 105//config: default y
106//config: depends on VI 106//config: depends on VI
107//config: help 107//config: help
108//config: Enable the editor to set some (ai, ic, showmatch) options. 108//config: Enable the editor to set some (ai, ic, showmatch) options.
109//config: 109//config:
110//config:config FEATURE_VI_SET 110//config:config FEATURE_VI_SET
111//config: bool "Support :set" 111//config: bool "Support :set"
@@ -117,37 +117,37 @@
117//config: default y 117//config: default y
118//config: depends on VI 118//config: depends on VI
119//config: help 119//config: help
120//config: Behave nicely with terminals that get resized. 120//config: Behave nicely with terminals that get resized.
121//config: 121//config:
122//config:config FEATURE_VI_ASK_TERMINAL 122//config:config FEATURE_VI_ASK_TERMINAL
123//config: bool "Use 'tell me cursor position' ESC sequence to measure window" 123//config: bool "Use 'tell me cursor position' ESC sequence to measure window"
124//config: default y 124//config: default y
125//config: depends on VI 125//config: depends on VI
126//config: help 126//config: help
127//config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set, 127//config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
128//config: this option makes vi perform a last-ditch effort to find it: 128//config: this option makes vi perform a last-ditch effort to find it:
129//config: position cursor to 999,999 and ask terminal to report real 129//config: position cursor to 999,999 and ask terminal to report real
130//config: cursor position using "ESC [ 6 n" escape sequence, then read stdin. 130//config: cursor position using "ESC [ 6 n" escape sequence, then read stdin.
131//config: This is not clean but helps a lot on serial lines and such. 131//config: This is not clean but helps a lot on serial lines and such.
132//config: 132//config:
133//config:config FEATURE_VI_UNDO 133//config:config FEATURE_VI_UNDO
134//config: bool "Support undo command \"u\"" 134//config: bool "Support undo command \"u\""
135//config: default y 135//config: default y
136//config: depends on VI 136//config: depends on VI
137//config: help 137//config: help
138//config: Support the 'u' command to undo insertion, deletion, and replacement 138//config: Support the 'u' command to undo insertion, deletion, and replacement
139//config: of text. 139//config: of text.
140//config: 140//config:
141//config:config FEATURE_VI_UNDO_QUEUE 141//config:config FEATURE_VI_UNDO_QUEUE
142//config: bool "Enable undo operation queuing" 142//config: bool "Enable undo operation queuing"
143//config: default y 143//config: default y
144//config: depends on FEATURE_VI_UNDO 144//config: depends on FEATURE_VI_UNDO
145//config: help 145//config: help
146//config: The vi undo functions can use an intermediate queue to greatly lower 146//config: The vi undo functions can use an intermediate queue to greatly lower
147//config: malloc() calls and overhead. When the maximum size of this queue is 147//config: malloc() calls and overhead. When the maximum size of this queue is
148//config: reached, the contents of the queue are committed to the undo stack. 148//config: reached, the contents of the queue are committed to the undo stack.
149//config: This increases the size of the undo code and allows some undo 149//config: This increases the size of the undo code and allows some undo
150//config: operations (especially un-typing/backspacing) to be far more useful. 150//config: operations (especially un-typing/backspacing) to be far more useful.
151//config: 151//config:
152//config:config FEATURE_VI_UNDO_QUEUE_MAX 152//config:config FEATURE_VI_UNDO_QUEUE_MAX
153//config: int "Maximum undo character queue size" 153//config: int "Maximum undo character queue size"
@@ -155,13 +155,13 @@
155//config: range 32 65536 155//config: range 32 65536
156//config: depends on FEATURE_VI_UNDO_QUEUE 156//config: depends on FEATURE_VI_UNDO_QUEUE
157//config: help 157//config: help
158//config: This option sets the number of bytes used at runtime for the queue. 158//config: This option sets the number of bytes used at runtime for the queue.
159//config: Smaller values will create more undo objects and reduce the amount 159//config: Smaller values will create more undo objects and reduce the amount
160//config: of typed or backspaced characters that are grouped into one undo 160//config: of typed or backspaced characters that are grouped into one undo
161//config: operation; larger values increase the potential size of each undo 161//config: operation; larger values increase the potential size of each undo
162//config: and will generally malloc() larger objects and less frequently. 162//config: and will generally malloc() larger objects and less frequently.
163//config: Unless you want more (or less) frequent "undo points" while typing, 163//config: Unless you want more (or less) frequent "undo points" while typing,
164//config: you should probably leave this unchanged. 164//config: you should probably leave this unchanged.
165 165
166//applet:IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP)) 166//applet:IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP))
167 167