xref: /vim-8.2.3635/runtime/doc/quickref.txt (revision 079ba76a)
1*079ba76aSBram Moolenaar*quickref.txt*  For Vim version 8.2.  Last change: 2021 Oct 17
2071d4279SBram Moolenaar
3071d4279SBram Moolenaar
4071d4279SBram Moolenaar		  VIM REFERENCE MANUAL    by Bram Moolenaar
5071d4279SBram Moolenaar
6071d4279SBram Moolenaar			    Quick reference guide
7071d4279SBram Moolenaar
8071d4279SBram Moolenaar							 *quickref* *Contents*
9071d4279SBram Moolenaar tag	  subject			 tag	  subject	~
10071d4279SBram Moolenaar|Q_ct|	list of help files		|Q_re|	Repeating commands
11071d4279SBram Moolenaar|Q_lr|	motion: Left-right		|Q_km|	Key mapping
12071d4279SBram Moolenaar|Q_ud|	motion: Up-down			|Q_ab|	Abbreviations
13071d4279SBram Moolenaar|Q_tm|	motion: Text object		|Q_op|	Options
14071d4279SBram Moolenaar|Q_pa|	motion: Pattern searches	|Q_ur|	Undo/Redo commands
15071d4279SBram Moolenaar|Q_ma|	motion: Marks			|Q_et|	External commands
16071d4279SBram Moolenaar|Q_vm|	motion: Various			|Q_qf|	Quickfix commands
17071d4279SBram Moolenaar|Q_ta|	motion: Using tags		|Q_vc|	Various commands
18071d4279SBram Moolenaar|Q_sc|	Scrolling			|Q_ce|	Ex: Command-line editing
19071d4279SBram Moolenaar|Q_in|	insert: Inserting text		|Q_ra|	Ex: Ranges
20071d4279SBram Moolenaar|Q_ai|	insert: Keys			|Q_ex|	Ex: Special characters
219028b10dSBram Moolenaar|Q_ss|	insert: Special keys		|Q_st|	Starting Vim
222df6dcc5SBram Moolenaar|Q_di|	insert: Digraphs		|Q_ed|	Editing a file
232df6dcc5SBram Moolenaar|Q_si|	insert: Special inserts		|Q_fl|	Using the argument list
242df6dcc5SBram Moolenaar|Q_de|	change: Deleting text		|Q_wq|	Writing and quitting
25071d4279SBram Moolenaar|Q_cm|	change: Copying and moving	|Q_ac|	Automatic commands
26071d4279SBram Moolenaar|Q_ch|	change: Changing text		|Q_wi|	Multi-window commands
27071d4279SBram Moolenaar|Q_co|	change: Complex			|Q_bu|	Buffer list commands
28071d4279SBram Moolenaar|Q_vi|	Visual mode			|Q_sy|	Syntax highlighting
29071d4279SBram Moolenaar|Q_to|	Text objects			|Q_gu|	GUI commands
30071d4279SBram Moolenaar					|Q_fo|	Folding
31071d4279SBram Moolenaar
32071d4279SBram Moolenaar------------------------------------------------------------------------------
33071d4279SBram MoolenaarN is used to indicate an optional count that can be given before the command.
34071d4279SBram Moolenaar------------------------------------------------------------------------------
35071d4279SBram Moolenaar*Q_lr*		Left-right motions
36071d4279SBram Moolenaar
37071d4279SBram Moolenaar|h|	N  h		left (also: CTRL-H, <BS>, or <Left> key)
38071d4279SBram Moolenaar|l|	N  l		right (also: <Space> or <Right> key)
39071d4279SBram Moolenaar|0|	   0		to first character in the line (also: <Home> key)
40071d4279SBram Moolenaar|^|	   ^		to first non-blank character in the line
41071d4279SBram Moolenaar|$|	N  $		to the last character in the line (N-1 lines lower)
42071d4279SBram Moolenaar			   (also: <End> key)
438f3f58f2SBram Moolenaar|g0|	   g0		to first character in screen line (differs from "0"
44071d4279SBram Moolenaar			   when lines wrap)
458f3f58f2SBram Moolenaar|g^|	   g^		to first non-blank character in screen line (differs
46071d4279SBram Moolenaar			   from "^" when lines wrap)
47071d4279SBram Moolenaar|g$|	N  g$		to last character in screen line (differs from "$"
48071d4279SBram Moolenaar			   when lines wrap)
498f3f58f2SBram Moolenaar|gm|	   gm		to middle of the screen line
508b530c1fSBram Moolenaar|gM|	   gM		to middle of the line
51071d4279SBram Moolenaar|bar|	N  |		to column N (default: 1)
52071d4279SBram Moolenaar|f|	N  f{char}	to the Nth occurrence of {char} to the right
53071d4279SBram Moolenaar|F|	N  F{char}	to the Nth occurrence of {char} to the left
54071d4279SBram Moolenaar|t|	N  t{char}	till before the Nth occurrence of {char} to the right
55071d4279SBram Moolenaar|T|	N  T{char}	till before the Nth occurrence of {char} to the left
56071d4279SBram Moolenaar|;|	N  ;		repeat the last "f", "F", "t", or "T" N times
57071d4279SBram Moolenaar|,|	N  ,		repeat the last "f", "F", "t", or "T" N times in
58071d4279SBram Moolenaar			   opposite direction
59071d4279SBram Moolenaar------------------------------------------------------------------------------
60071d4279SBram Moolenaar*Q_ud*		Up-down motions
61071d4279SBram Moolenaar
62071d4279SBram Moolenaar|k|	N  k		up N lines (also: CTRL-P and <Up>)
63071d4279SBram Moolenaar|j|	N  j		down N lines (also: CTRL-J, CTRL-N, <NL>, and <Down>)
64071d4279SBram Moolenaar|-|	N  -		up N lines, on the first non-blank character
65071d4279SBram Moolenaar|+|	N  +		down N lines, on the first non-blank character (also:
66071d4279SBram Moolenaar			   CTRL-M and <CR>)
67071d4279SBram Moolenaar|_|	N  _		down N-1 lines, on the first non-blank character
68071d4279SBram Moolenaar|G|	N  G		goto line N (default: last line), on the first
69071d4279SBram Moolenaar			   non-blank character
70071d4279SBram Moolenaar|gg|	N  gg		goto line N (default: first line), on the first
71071d4279SBram Moolenaar			   non-blank character
72d04b7507SBram Moolenaar|N%|	N  %		goto line N percentage down in the file; N must be
73d04b7507SBram Moolenaar			   given, otherwise it is the |%| command
74071d4279SBram Moolenaar|gk|	N  gk		up N screen lines (differs from "k" when line wraps)
75071d4279SBram Moolenaar|gj|	N  gj		down N screen lines (differs from "j" when line wraps)
76071d4279SBram Moolenaar------------------------------------------------------------------------------
77071d4279SBram Moolenaar*Q_tm*		Text object motions
78071d4279SBram Moolenaar
79071d4279SBram Moolenaar|w|	N  w		N words forward
80071d4279SBram Moolenaar|W|	N  W		N blank-separated |WORD|s forward
81071d4279SBram Moolenaar|e|	N  e		forward to the end of the Nth word
82071d4279SBram Moolenaar|E|	N  E		forward to the end of the Nth blank-separated |WORD|
83071d4279SBram Moolenaar|b|	N  b		N words backward
84071d4279SBram Moolenaar|B|	N  B		N blank-separated |WORD|s backward
85071d4279SBram Moolenaar|ge|	N  ge		backward to the end of the Nth word
86071d4279SBram Moolenaar|gE|	N  gE		backward to the end of the Nth blank-separated |WORD|
87071d4279SBram Moolenaar
88071d4279SBram Moolenaar|)|	N  )		N sentences forward
89071d4279SBram Moolenaar|(|	N  (		N sentences backward
90071d4279SBram Moolenaar|}|	N  }		N paragraphs forward
91071d4279SBram Moolenaar|{|	N  {		N paragraphs backward
92071d4279SBram Moolenaar|]]|	N  ]]		N sections forward, at start of section
93071d4279SBram Moolenaar|[[|	N  [[		N sections backward, at start of section
94071d4279SBram Moolenaar|][|	N  ][		N sections forward, at end of section
95071d4279SBram Moolenaar|[]|	N  []		N sections backward, at end of section
96071d4279SBram Moolenaar|[(|	N  [(		N times back to unclosed '('
97071d4279SBram Moolenaar|[{|	N  [{		N times back to unclosed '{'
98071d4279SBram Moolenaar|[m|	N  [m		N times back to start of method (for Java)
99071d4279SBram Moolenaar|[M|	N  [M		N times back to end of method (for Java)
100071d4279SBram Moolenaar|])|	N  ])		N times forward to unclosed ')'
101071d4279SBram Moolenaar|]}|	N  ]}		N times forward to unclosed '}'
102071d4279SBram Moolenaar|]m|	N  ]m		N times forward to start of method (for Java)
103071d4279SBram Moolenaar|]M|	N  ]M		N times forward to end of method (for Java)
104071d4279SBram Moolenaar|[#|	N  [#		N times back to unclosed "#if" or "#else"
105071d4279SBram Moolenaar|]#|	N  ]#		N times forward to unclosed "#else" or "#endif"
106071d4279SBram Moolenaar|[star|	N  [*		N times back to start of comment "/*"
107071d4279SBram Moolenaar|]star|	N  ]*		N times forward to end of comment "*/"
108071d4279SBram Moolenaar------------------------------------------------------------------------------
109071d4279SBram Moolenaar*Q_pa*		Pattern searches
110071d4279SBram Moolenaar
111071d4279SBram Moolenaar|/|	N  /{pattern}[/[offset]]<CR>
112071d4279SBram Moolenaar			search forward for the Nth occurrence of {pattern}
113071d4279SBram Moolenaar|?|	N  ?{pattern}[?[offset]]<CR>
114071d4279SBram Moolenaar			search backward for the Nth occurrence of {pattern}
115071d4279SBram Moolenaar|/<CR>|	N  /<CR>	repeat last search, in the forward direction
116071d4279SBram Moolenaar|?<CR>|	N  ?<CR>	repeat last search, in the backward direction
117071d4279SBram Moolenaar|n|	N  n		repeat last search
118071d4279SBram Moolenaar|N|	N  N		repeat last search, in opposite direction
119071d4279SBram Moolenaar|star|	N  *		search forward for the identifier under the cursor
120071d4279SBram Moolenaar|#|	N  #		search backward for the identifier under the cursor
121071d4279SBram Moolenaar|gstar|	N  g*		like "*", but also find partial matches
122071d4279SBram Moolenaar|g#|	N  g#		like "#", but also find partial matches
123071d4279SBram Moolenaar|gd|	   gd		goto local declaration of identifier under the cursor
124071d4279SBram Moolenaar|gD|	   gD		goto global declaration of identifier under the cursor
125071d4279SBram Moolenaar
126071d4279SBram Moolenaar|pattern|		Special characters in search patterns
127071d4279SBram Moolenaar
128071d4279SBram Moolenaar			meaning		      magic   nomagic	~
129071d4279SBram Moolenaar		matches any single character	.	\.
130071d4279SBram Moolenaar		       matches start of line	^	^
131071d4279SBram Moolenaar			       matches <EOL>	$	$
132071d4279SBram Moolenaar		       matches start of word	\<	\<
133071d4279SBram Moolenaar			 matches end of word	\>	\>
134071d4279SBram Moolenaar	matches a single char from the range	[a-z]	\[a-z]
135071d4279SBram Moolenaar      matches a single char not in the range	[^a-z]	\[^a-z]
136071d4279SBram Moolenaar		  matches an identifier char	\i	\i
137071d4279SBram Moolenaar		   idem but excluding digits	\I	\I
138071d4279SBram Moolenaar		 matches a keyword character	\k	\k
139071d4279SBram Moolenaar		   idem but excluding digits	\K	\K
140071d4279SBram Moolenaar	       matches a file name character	\f	\f
141071d4279SBram Moolenaar		   idem but excluding digits	\F	\F
142071d4279SBram Moolenaar	       matches a printable character	\p	\p
143071d4279SBram Moolenaar		   idem but excluding digits	\P	\P
144071d4279SBram Moolenaar	     matches a white space character	\s	\s
145071d4279SBram Moolenaar	 matches a non-white space character	\S	\S
146071d4279SBram Moolenaar
147071d4279SBram Moolenaar			       matches <Esc>	\e	\e
148071d4279SBram Moolenaar			       matches <Tab>	\t	\t
149071d4279SBram Moolenaar				matches <CR>	\r	\r
150071d4279SBram Moolenaar				matches <BS>	\b	\b
151071d4279SBram Moolenaar
152071d4279SBram Moolenaar     matches 0 or more of the preceding atom	*	\*
153071d4279SBram Moolenaar     matches 1 or more of the preceding atom	\+	\+
154071d4279SBram Moolenaar	matches 0 or 1 of the preceding atom	\=	\=
155071d4279SBram Moolenaar	matches 2 to 5 of the preceding atom	\{2,5}  \{2,5}
156071d4279SBram Moolenaar		  separates two alternatives	\|	\|
157071d4279SBram Moolenaar		group a pattern into an atom	\(\)	\(\)
158071d4279SBram Moolenaar
159071d4279SBram Moolenaar|search-offset|		Offsets allowed after search command
160071d4279SBram Moolenaar
161071d4279SBram Moolenaar    [num]	[num] lines downwards, in column 1
162071d4279SBram Moolenaar    +[num]	[num] lines downwards, in column 1
163071d4279SBram Moolenaar    -[num]	[num] lines upwards, in column 1
164071d4279SBram Moolenaar    e[+num]	[num] characters to the right of the end of the match
165071d4279SBram Moolenaar    e[-num]	[num] characters to the left of the end of the match
166071d4279SBram Moolenaar    s[+num]	[num] characters to the right of the start of the match
167071d4279SBram Moolenaar    s[-num]	[num] characters to the left of the start of the match
168071d4279SBram Moolenaar    b[+num]	[num] identical to s[+num] above (mnemonic: begin)
169071d4279SBram Moolenaar    b[-num]	[num] identical to s[-num] above (mnemonic: begin)
170071d4279SBram Moolenaar    ;{search-command}	execute {search-command} next
171071d4279SBram Moolenaar------------------------------------------------------------------------------
172071d4279SBram Moolenaar*Q_ma*		Marks and motions
173071d4279SBram Moolenaar
174071d4279SBram Moolenaar|m|        m{a-zA-Z}	mark current position with mark {a-zA-Z}
175071d4279SBram Moolenaar|`a|       `{a-z}	go to mark {a-z} within current file
176071d4279SBram Moolenaar|`A|       `{A-Z}	go to mark {A-Z} in any file
177071d4279SBram Moolenaar|`0|       `{0-9}	go to the position where Vim was previously exited
178071d4279SBram Moolenaar|``|       ``		go to the position before the last jump
179071d4279SBram Moolenaar|`quote|   `"		go to the position when last editing this file
180071d4279SBram Moolenaar|`[|       `[		go to the start of the previously operated or put text
181071d4279SBram Moolenaar|`]|       `]		go to the end of the previously operated or put text
182071d4279SBram Moolenaar|`<|       `<		go to the start of the (previous) Visual area
183071d4279SBram Moolenaar|`>|       `>		go to the end of the (previous) Visual area
184071d4279SBram Moolenaar|`.|       `.		go to the position of the last change in this file
185071d4279SBram Moolenaar|'|        '{a-zA-Z0-9[]'"<>.}
186071d4279SBram Moolenaar			same as `, but on the first non-blank in the line
187071d4279SBram Moolenaar|:marks|  :marks	print the active marks
188071d4279SBram Moolenaar|CTRL-O|  N  CTRL-O	go to Nth older position in jump list
189071d4279SBram Moolenaar|CTRL-I|  N  CTRL-I	go to Nth newer position in jump list
190071d4279SBram Moolenaar|:ju|     :ju[mps]	print the jump list
191071d4279SBram Moolenaar------------------------------------------------------------------------------
192071d4279SBram Moolenaar*Q_vm*		Various motions
193071d4279SBram Moolenaar
194071d4279SBram Moolenaar|%|	   %		find the next brace, bracket, comment, or "#if"/
195071d4279SBram Moolenaar			   "#else"/"#endif" in this line and go to its match
196071d4279SBram Moolenaar|H|	N  H		go to the Nth line in the window, on the first
197071d4279SBram Moolenaar			   non-blank
198071d4279SBram Moolenaar|M|	   M		go to the middle line in the window, on the first
199071d4279SBram Moolenaar			   non-blank
200071d4279SBram Moolenaar|L|	N  L		go to the Nth line from the bottom, on the first
201071d4279SBram Moolenaar			   non-blank
202071d4279SBram Moolenaar
203071d4279SBram Moolenaar|go|	N  go			go to Nth byte in the buffer
204071d4279SBram Moolenaar|:go|	:[range]go[to] [off]	go to [off] byte in the buffer
205071d4279SBram Moolenaar------------------------------------------------------------------------------
206071d4279SBram Moolenaar*Q_ta*		Using tags
207071d4279SBram Moolenaar
208d04b7507SBram Moolenaar|:ta|      :ta[g][!] {tag}	jump to tag {tag}
209d04b7507SBram Moolenaar|:ta|      :[count]ta[g][!]	jump to [count]'th newer tag in tag list
210d04b7507SBram Moolenaar|CTRL-]|      CTRL-]		jump to the tag under cursor, unless changes
211071d4279SBram Moolenaar				   have been made
212d04b7507SBram Moolenaar|:ts|      :ts[elect][!] [tag]	list matching tags and select one to jump to
213d04b7507SBram Moolenaar|:tjump|   :tj[ump][!] [tag]	jump to tag [tag] or select from list when
214071d4279SBram Moolenaar				   there are multiple matches
215d04b7507SBram Moolenaar|:ltag|    :lt[ag][!] [tag]	jump to tag [tag] and add matching tags to the
216d04b7507SBram Moolenaar				   location list
217071d4279SBram Moolenaar
218d04b7507SBram Moolenaar|:tags|    :tags		print tag list
219d04b7507SBram Moolenaar|CTRL-T|   N  CTRL-T		jump back from Nth older tag in tag list
220d04b7507SBram Moolenaar|:po|      :[count]po[p][!]	jump back from [count]'th older tag in tag list
221d04b7507SBram Moolenaar|:tnext|   :[count]tn[ext][!]	jump to [count]'th next matching tag
222d04b7507SBram Moolenaar|:tp|      :[count]tp[revious][!] jump to [count]'th previous matching tag
223d04b7507SBram Moolenaar|:tr|      :[count]tr[ewind][!]	jump to [count]'th matching tag
224d04b7507SBram Moolenaar|:tl|      :tl[ast][!]		jump to last matching tag
225071d4279SBram Moolenaar
226071d4279SBram Moolenaar|:ptag|    :pt[ag] {tag}	open a preview window to show tag {tag}
227071d4279SBram Moolenaar|CTRL-W_}|    CTRL-W }		like CTRL-] but show tag in preview window
228071d4279SBram Moolenaar|:pts|     :pts[elect]		like ":tselect" but show tag in preview window
229071d4279SBram Moolenaar|:ptjump|  :ptj[ump]		like ":tjump" but show tag in preview window
230071d4279SBram Moolenaar|:pclose|  :pc[lose]		close tag preview window
231071d4279SBram Moolenaar|CTRL-W_z|    CTRL-W z		close tag preview window
232071d4279SBram Moolenaar------------------------------------------------------------------------------
233071d4279SBram Moolenaar*Q_sc*		Scrolling
234071d4279SBram Moolenaar
235071d4279SBram Moolenaar|CTRL-E|	N  CTRL-E	window N lines downwards (default: 1)
236071d4279SBram Moolenaar|CTRL-D|	N  CTRL-D	window N lines Downwards (default: 1/2 window)
237071d4279SBram Moolenaar|CTRL-F|	N  CTRL-F	window N pages Forwards (downwards)
238071d4279SBram Moolenaar|CTRL-Y|	N  CTRL-Y	window N lines upwards (default: 1)
239071d4279SBram Moolenaar|CTRL-U|	N  CTRL-U	window N lines Upwards (default: 1/2 window)
240071d4279SBram Moolenaar|CTRL-B|	N  CTRL-B	window N pages Backwards (upwards)
241071d4279SBram Moolenaar|z<CR>|		   z<CR> or zt	redraw, current line at top of window
242071d4279SBram Moolenaar|z.|		   z.	 or zz	redraw, current line at center of window
243071d4279SBram Moolenaar|z-|		   z-	 or zb	redraw, current line at bottom of window
244071d4279SBram Moolenaar
245071d4279SBram MoolenaarThese only work when 'wrap' is off:
246071d4279SBram Moolenaar|zh|		N  zh		scroll screen N characters to the right
247071d4279SBram Moolenaar|zl|		N  zl		scroll screen N characters to the left
248071d4279SBram Moolenaar|zH|		N  zH		scroll screen half a screenwidth to the right
249071d4279SBram Moolenaar|zL|		N  zL		scroll screen half a screenwidth to the left
250071d4279SBram Moolenaar------------------------------------------------------------------------------
251071d4279SBram Moolenaar*Q_in*		Inserting text
252071d4279SBram Moolenaar
253071d4279SBram Moolenaar|a|	N  a	append text after the cursor (N times)
254071d4279SBram Moolenaar|A|	N  A	append text at the end of the line (N times)
255071d4279SBram Moolenaar|i|	N  i	insert text before the cursor (N times) (also: <Insert>)
256071d4279SBram Moolenaar|I|	N  I	insert text before the first non-blank in the line (N times)
257071d4279SBram Moolenaar|gI|	N  gI	insert text in column 1 (N times)
258071d4279SBram Moolenaar|o|	N  o	open a new line below the current line, append text (N times)
259071d4279SBram Moolenaar|O|	N  O	open a new line above the current line, append text (N times)
260071d4279SBram Moolenaar|:startinsert|  :star[tinsert][!]  start Insert mode, append when [!] used
261325b7a2fSBram Moolenaar|:startreplace| :startr[eplace][!]  start Replace mode, at EOL when [!] used
262071d4279SBram Moolenaar
263071d4279SBram Moolenaarin Visual block mode:
264071d4279SBram Moolenaar|v_b_I|	   I	insert the same text in front of all the selected lines
265071d4279SBram Moolenaar|v_b_A|	   A	append the same text after all the selected lines
266071d4279SBram Moolenaar------------------------------------------------------------------------------
267071d4279SBram Moolenaar*Q_ai*		Insert mode keys
268071d4279SBram Moolenaar
269071d4279SBram Moolenaar|insert-index|	alphabetical index of Insert mode commands
270071d4279SBram Moolenaar
271071d4279SBram Moolenaarleaving Insert mode:
272071d4279SBram Moolenaar|i_<Esc>|	<Esc>		  end Insert mode, back to Normal mode
273071d4279SBram Moolenaar|i_CTRL-C|	CTRL-C		  like <Esc>, but do not use an abbreviation
274071d4279SBram Moolenaar|i_CTRL-O|	CTRL-O {command}  execute {command} and return to Insert mode
275071d4279SBram Moolenaar
276071d4279SBram Moolenaarmoving around:
277071d4279SBram Moolenaar|i_<Up>|	cursor keys	  move cursor left/right/up/down
278071d4279SBram Moolenaar|i_<S-Left>|	shift-left/right  one word left/right
279071d4279SBram Moolenaar|i_<S-Up>|	shift-up/down	  one screenful backward/forward
280071d4279SBram Moolenaar|i_<End>|	<End>		  cursor after last character in the line
281071d4279SBram Moolenaar|i_<Home>|	<Home>		  cursor to first character in the line
282071d4279SBram Moolenaar------------------------------------------------------------------------------
283071d4279SBram Moolenaar*Q_ss*		Special keys in Insert mode
284071d4279SBram Moolenaar
285071d4279SBram Moolenaar|i_CTRL-V|	CTRL-V {char}..	  insert character literally, or enter decimal
286071d4279SBram Moolenaar				     byte value
287071d4279SBram Moolenaar|i_<NL>|	<NL> or <CR> or CTRL-M or CTRL-J
288071d4279SBram Moolenaar				  begin new line
289071d4279SBram Moolenaar|i_CTRL-E|	CTRL-E		  insert the character from below the cursor
290071d4279SBram Moolenaar|i_CTRL-Y|	CTRL-Y		  insert the character from above the cursor
291071d4279SBram Moolenaar
292071d4279SBram Moolenaar|i_CTRL-A|	CTRL-A		  insert previously inserted text
293071d4279SBram Moolenaar|i_CTRL-@|	CTRL-@		  insert previously inserted text and stop
294071d4279SBram Moolenaar				     Insert mode
2955be4ceecSBram Moolenaar|i_CTRL-R|	CTRL-R {register} insert the contents of a register
296071d4279SBram Moolenaar
297071d4279SBram Moolenaar|i_CTRL-N|	CTRL-N		  insert next match of identifier before the
298071d4279SBram Moolenaar				     cursor
299071d4279SBram Moolenaar|i_CTRL-P|	CTRL-P		  insert previous match of identifier before
300071d4279SBram Moolenaar				     the cursor
301071d4279SBram Moolenaar|i_CTRL-X|	CTRL-X ...	  complete the word before the cursor in
302071d4279SBram Moolenaar				     various ways
303071d4279SBram Moolenaar
304071d4279SBram Moolenaar|i_<BS>|	<BS> or CTRL-H	  delete the character before the cursor
305071d4279SBram Moolenaar|i_<Del>|	<Del>		  delete the character under the cursor
306071d4279SBram Moolenaar|i_CTRL-W|	CTRL-W		  delete word before the cursor
307071d4279SBram Moolenaar|i_CTRL-U|	CTRL-U		  delete all entered characters in the current
308071d4279SBram Moolenaar				     line
309071d4279SBram Moolenaar|i_CTRL-T|	CTRL-T		  insert one shiftwidth of indent in front of
310071d4279SBram Moolenaar				       the current line
311071d4279SBram Moolenaar|i_CTRL-D|	CTRL-D		  delete one shiftwidth of indent in front of
312071d4279SBram Moolenaar				     the current line
313071d4279SBram Moolenaar|i_0_CTRL-D|	0 CTRL-D	  delete all indent in the current line
314071d4279SBram Moolenaar|i_^_CTRL-D|	^ CTRL-D	  delete all indent in the current line,
315071d4279SBram Moolenaar				     restore indent in next line
316071d4279SBram Moolenaar------------------------------------------------------------------------------
317071d4279SBram Moolenaar*Q_di*		Digraphs
318071d4279SBram Moolenaar
319071d4279SBram Moolenaar|:dig|	   :dig[raphs]		show current list of digraphs
320071d4279SBram Moolenaar|:dig|	   :dig[raphs] {char1}{char2} {number} ...
321071d4279SBram Moolenaar				add digraph(s) to the list
322071d4279SBram Moolenaar
323071d4279SBram MoolenaarIn Insert or Command-line mode:
324071d4279SBram Moolenaar|i_CTRL-K|	CTRL-K {char1} {char2}
325071d4279SBram Moolenaar				  enter digraph
326071d4279SBram Moolenaar|i_digraph|	{char1} <BS> {char2}
327071d4279SBram Moolenaar				  enter digraph if 'digraph' option set
328071d4279SBram Moolenaar------------------------------------------------------------------------------
329071d4279SBram Moolenaar*Q_si*		Special inserts
330071d4279SBram Moolenaar
331071d4279SBram Moolenaar|:r|	   :r [file]	   insert the contents of [file] below the cursor
332071d4279SBram Moolenaar|:r!|	   :r! {command}   insert the standard output of {command} below the
333071d4279SBram Moolenaar			      cursor
334071d4279SBram Moolenaar------------------------------------------------------------------------------
335071d4279SBram Moolenaar*Q_de*		Deleting text
336071d4279SBram Moolenaar
337071d4279SBram Moolenaar|x|	N  x		delete N characters under and after the cursor
338071d4279SBram Moolenaar|<Del>|	N  <Del>	delete N characters under and after the cursor
339071d4279SBram Moolenaar|X|	N  X		delete N characters before the cursor
340071d4279SBram Moolenaar|d|	N  d{motion}	delete the text that is moved over with {motion}
341071d4279SBram Moolenaar|v_d|	   {visual}d	delete the highlighted text
342071d4279SBram Moolenaar|dd|	N  dd		delete N lines
343071d4279SBram Moolenaar|D|	N  D		delete to the end of the line (and N-1 more lines)
344071d4279SBram Moolenaar|J|	N  J		join N-1 lines (delete <EOL>s)
345071d4279SBram Moolenaar|v_J|	   {visual}J	join the highlighted lines
346071d4279SBram Moolenaar|gJ|	N  gJ		like "J", but without inserting spaces
347071d4279SBram Moolenaar|v_gJ|	   {visual}gJ	like "{visual}J", but without inserting spaces
348071d4279SBram Moolenaar|:d|	:[range]d [x]	delete [range] lines [into register x]
349071d4279SBram Moolenaar------------------------------------------------------------------------------
350071d4279SBram Moolenaar*Q_cm*		Copying and moving text
351071d4279SBram Moolenaar
352071d4279SBram Moolenaar|quote|	  "{char}	use register {char} for the next delete, yank, or put
353071d4279SBram Moolenaar|:reg|	  :reg		show the contents of all registers
354071d4279SBram Moolenaar|:reg|	  :reg {arg}	show the contents of registers mentioned in {arg}
355071d4279SBram Moolenaar|y|	  N  y{motion}	yank the text moved over with {motion} into a register
356071d4279SBram Moolenaar|v_y|	     {visual}y	yank the highlighted text into a register
357071d4279SBram Moolenaar|yy|	  N  yy		yank N lines into a register
358071d4279SBram Moolenaar|Y|	  N  Y		yank N lines into a register
359071d4279SBram Moolenaar|p|	  N  p		put a register after the cursor position (N times)
360071d4279SBram Moolenaar|P|	  N  P		put a register before the cursor position (N times)
361071d4279SBram Moolenaar|]p|	  N  ]p		like p, but adjust indent to current line
362071d4279SBram Moolenaar|[p|	  N  [p		like P, but adjust indent to current line
363071d4279SBram Moolenaar|gp|	  N  gp		like p, but leave cursor after the new text
364071d4279SBram Moolenaar|gP|	  N  gP		like P, but leave cursor after the new text
365071d4279SBram Moolenaar------------------------------------------------------------------------------
366071d4279SBram Moolenaar*Q_ch*		Changing text
367071d4279SBram Moolenaar
368071d4279SBram Moolenaar|r|	  N  r{char}	replace N characters with {char}
369071d4279SBram Moolenaar|gr|	  N  gr{char}	replace N characters without affecting layout
370071d4279SBram Moolenaar|R|	  N  R		enter Replace mode (repeat the entered text N times)
371071d4279SBram Moolenaar|gR|	  N  gR		enter virtual Replace mode: Like Replace mode but
372071d4279SBram Moolenaar			   without affecting layout
373071d4279SBram Moolenaar|v_b_r|	     {visual}r{char}
374071d4279SBram Moolenaar			in Visual block mode: Replace each char of the
375071d4279SBram Moolenaar			   selected text with {char}
376071d4279SBram Moolenaar
377071d4279SBram Moolenaar	(change = delete text and enter Insert mode)
378071d4279SBram Moolenaar|c|	  N  c{motion}	change the text that is moved over with {motion}
379071d4279SBram Moolenaar|v_c|	     {visual}c	change the highlighted text
380071d4279SBram Moolenaar|cc|	  N  cc		change N lines
381071d4279SBram Moolenaar|S|	  N  S		change N lines
382071d4279SBram Moolenaar|C|	  N  C		change to the end of the line (and N-1 more lines)
383071d4279SBram Moolenaar|s|	  N  s		change N characters
384071d4279SBram Moolenaar|v_b_c|	     {visual}c	in Visual block mode: Change each of the selected
385071d4279SBram Moolenaar			   lines with the entered text
386071d4279SBram Moolenaar|v_b_C|	     {visual}C	in Visual block mode: Change each of the selected
387071d4279SBram Moolenaar			   lines until end-of-line with the entered text
388071d4279SBram Moolenaar
389071d4279SBram Moolenaar|~|	  N  ~		switch case for N characters and advance cursor
390071d4279SBram Moolenaar|v_~|	     {visual}~	switch case for highlighted text
391071d4279SBram Moolenaar|v_u|	     {visual}u	make highlighted text lowercase
392071d4279SBram Moolenaar|v_U|	     {visual}U	make highlighted text uppercase
393071d4279SBram Moolenaar|g~|	     g~{motion} switch case for the text that is moved over with
394071d4279SBram Moolenaar			   {motion}
395071d4279SBram Moolenaar|gu|	     gu{motion} make the text that is moved over with {motion}
396071d4279SBram Moolenaar			   lowercase
397071d4279SBram Moolenaar|gU|	     gU{motion} make the text that is moved over with {motion}
398071d4279SBram Moolenaar			   uppercase
399071d4279SBram Moolenaar|v_g?|	     {visual}g? perform rot13 encoding on highlighted text
400071d4279SBram Moolenaar|g?|	     g?{motion} perform rot13 encoding on the text that is moved over
401071d4279SBram Moolenaar			   with {motion}
402071d4279SBram Moolenaar
403071d4279SBram Moolenaar|CTRL-A|  N  CTRL-A	add N to the number at or after the cursor
404071d4279SBram Moolenaar|CTRL-X|  N  CTRL-X	subtract N from the number at or after the cursor
405071d4279SBram Moolenaar
406071d4279SBram Moolenaar|<|	  N  <{motion}	move the lines that are moved over with {motion} one
407071d4279SBram Moolenaar			   shiftwidth left
408071d4279SBram Moolenaar|<<|	  N  <<		move N lines one shiftwidth left
409071d4279SBram Moolenaar|>|	  N  >{motion}	move the lines that are moved over with {motion} one
410071d4279SBram Moolenaar			   shiftwidth right
411071d4279SBram Moolenaar|>>|	  N  >>		move N lines one shiftwidth right
412071d4279SBram Moolenaar|gq|	  N  gq{motion}	format the lines that are moved over with {motion} to
413071d4279SBram Moolenaar			   'textwidth' length
414071d4279SBram Moolenaar|:ce|	  :[range]ce[nter] [width]
415071d4279SBram Moolenaar			center the lines in [range]
416071d4279SBram Moolenaar|:le|	  :[range]le[ft] [indent]
417071d4279SBram Moolenaar			left-align the lines in [range] (with [indent])
418071d4279SBram Moolenaar|:ri|	  :[range]ri[ght] [width]
419071d4279SBram Moolenaar			right-align the lines in [range]
420071d4279SBram Moolenaar------------------------------------------------------------------------------
421071d4279SBram Moolenaar*Q_co*		Complex changes
422071d4279SBram Moolenaar
423071d4279SBram Moolenaar|!|	   N  !{motion}{command}<CR>
424071d4279SBram Moolenaar			filter the lines that are moved over through {command}
425071d4279SBram Moolenaar|!!|	   N  !!{command}<CR>
426071d4279SBram Moolenaar			filter N lines through {command}
427071d4279SBram Moolenaar|v_!|	      {visual}!{command}<CR>
428071d4279SBram Moolenaar			filter the highlighted lines through {command}
429071d4279SBram Moolenaar|:range!|  :[range]! {command}<CR>
430071d4279SBram Moolenaar			filter [range] lines through {command}
431071d4279SBram Moolenaar|=|	   N  ={motion}
432071d4279SBram Moolenaar			filter the lines that are moved over through 'equalprg'
433071d4279SBram Moolenaar|==|	   N  ==	filter N lines through 'equalprg'
434071d4279SBram Moolenaar|v_=|	      {visual}=
435071d4279SBram Moolenaar			filter the highlighted lines through 'equalprg'
436071d4279SBram Moolenaar|:s|	   :[range]s[ubstitute]/{pattern}/{string}/[g][c]
437071d4279SBram Moolenaar			substitute {pattern} by {string} in [range] lines;
438071d4279SBram Moolenaar			   with [g], replace all occurrences of {pattern};
439071d4279SBram Moolenaar			   with [c], confirm each replacement
440071d4279SBram Moolenaar|:s|	   :[range]s[ubstitute] [g][c]
441071d4279SBram Moolenaar			repeat previous ":s" with new range and options
442071d4279SBram Moolenaar|&|	      &		Repeat previous ":s" on current line without options
443071d4279SBram Moolenaar|:ret|	   :[range]ret[ab][!] [tabstop]
444071d4279SBram Moolenaar			set 'tabstop' to new value and adjust white space
445071d4279SBram Moolenaar			   accordingly
446071d4279SBram Moolenaar------------------------------------------------------------------------------
447071d4279SBram Moolenaar*Q_vi*		Visual mode
448071d4279SBram Moolenaar
449071d4279SBram Moolenaar|visual-index|	list of Visual mode commands.
450071d4279SBram Moolenaar
451071d4279SBram Moolenaar|v|        v		start highlighting characters  }  move cursor and use
452071d4279SBram Moolenaar|V|        V		start highlighting linewise    }  operator to affect
453071d4279SBram Moolenaar|CTRL-V|   CTRL-V	start highlighting blockwise   }  highlighted text
454071d4279SBram Moolenaar|v_o|      o		exchange cursor position with start of highlighting
455071d4279SBram Moolenaar|gv|       gv		start highlighting on previous visual area
456071d4279SBram Moolenaar|v_v|      v		highlight characters or stop highlighting
457071d4279SBram Moolenaar|v_V|      V		highlight linewise or stop highlighting
458071d4279SBram Moolenaar|v_CTRL-V| CTRL-V	highlight blockwise or stop highlighting
459071d4279SBram Moolenaar------------------------------------------------------------------------------
460071d4279SBram Moolenaar*Q_to*		Text objects (only in Visual mode or after an operator)
461071d4279SBram Moolenaar
462071d4279SBram Moolenaar|v_aw|	   N  aw	Select "a word"
463071d4279SBram Moolenaar|v_iw|	   N  iw	Select "inner word"
464071d4279SBram Moolenaar|v_aW|	   N  aW	Select "a |WORD|"
465071d4279SBram Moolenaar|v_iW|	   N  iW	Select "inner |WORD|"
466071d4279SBram Moolenaar|v_as|	   N  as	Select "a sentence"
467071d4279SBram Moolenaar|v_is|	   N  is	Select "inner sentence"
468071d4279SBram Moolenaar|v_ap|	   N  ap	Select "a paragraph"
469071d4279SBram Moolenaar|v_ip|	   N  ip	Select "inner paragraph"
470071d4279SBram Moolenaar|v_ab|	   N  ab	Select "a block" (from "[(" to "])")
471071d4279SBram Moolenaar|v_ib|	   N  ib	Select "inner block" (from "[(" to "])")
472071d4279SBram Moolenaar|v_aB|	   N  aB	Select "a Block" (from "[{" to "]}")
473071d4279SBram Moolenaar|v_iB|	   N  iB	Select "inner Block" (from "[{" to "]}")
4743577c6faSBram Moolenaar|v_a>|	   N  a>	Select "a <> block"
4753577c6faSBram Moolenaar|v_i>|	   N  i>	Select "inner <> block"
4763577c6faSBram Moolenaar|v_at|	   N  at	Select "a tag block" (from <aaa> to </aaa>)
4773577c6faSBram Moolenaar|v_it|	   N  it	Select "inner tag block" (from <aaa> to </aaa>)
4783577c6faSBram Moolenaar|v_a'|	   N  a'	Select "a single quoted string"
4793577c6faSBram Moolenaar|v_i'|	   N  i'	Select "inner single quoted string"
4803577c6faSBram Moolenaar|v_aquote| N  a"	Select "a double quoted string"
4813577c6faSBram Moolenaar|v_iquote| N  i"	Select "inner double quoted string"
4823577c6faSBram Moolenaar|v_a`|	   N  a`	Select "a backward quoted string"
4833577c6faSBram Moolenaar|v_i`|	   N  i`	Select "inner backward quoted string"
4843577c6faSBram Moolenaar
485071d4279SBram Moolenaar------------------------------------------------------------------------------
486071d4279SBram Moolenaar*Q_re*		Repeating commands
487071d4279SBram Moolenaar
488071d4279SBram Moolenaar|.|	   N  .		repeat last change (with count replaced with N)
489071d4279SBram Moolenaar|q|	      q{a-z}	record typed characters into register {a-z}
490071d4279SBram Moolenaar|q|	      q{A-Z}	record typed characters, appended to register {a-z}
491071d4279SBram Moolenaar|q|	      q		stop recording
492071d4279SBram Moolenaar|@|	   N  @{a-z}	execute the contents of register {a-z} (N times)
493071d4279SBram Moolenaar|@@|	   N  @@	   repeat previous @{a-z} (N times)
494071d4279SBram Moolenaar|:@|	   :@{a-z}	execute the contents of register {a-z} as an Ex
495071d4279SBram Moolenaar			   command
496071d4279SBram Moolenaar|:@@|	   :@@		repeat previous :@{a-z}
497071d4279SBram Moolenaar|:g|	   :[range]g[lobal]/{pattern}/[cmd]
498d04b7507SBram Moolenaar			execute Ex command [cmd] (default: ":p") on the lines
499d04b7507SBram Moolenaar			   within [range] where {pattern} matches
500071d4279SBram Moolenaar|:g|	   :[range]g[lobal]!/{pattern}/[cmd]
501d04b7507SBram Moolenaar			execute Ex command [cmd] (default: ":p") on the lines
502d04b7507SBram Moolenaar			   within [range] where {pattern} does NOT match
503071d4279SBram Moolenaar|:so|	   :so[urce] {file}
504d04b7507SBram Moolenaar			read Ex commands from {file}
505071d4279SBram Moolenaar|:so|	   :so[urce]! {file}
506d04b7507SBram Moolenaar			read Vim commands from {file}
507071d4279SBram Moolenaar|:sl|	   :sl[eep] [sec]
508071d4279SBram Moolenaar			don't do anything for [sec] seconds
509d04b7507SBram Moolenaar|gs|	   N  gs	goto Sleep for N seconds
510071d4279SBram Moolenaar------------------------------------------------------------------------------
511071d4279SBram Moolenaar*Q_km*		Key mapping
512071d4279SBram Moolenaar
513d04b7507SBram Moolenaar|:map|       :ma[p] {lhs} {rhs}	  map {lhs} to {rhs} in Normal and Visual mode
514d04b7507SBram Moolenaar|:map!|      :ma[p]! {lhs} {rhs}  map {lhs} to {rhs} in Insert and Command-line
515d04b7507SBram Moolenaar				     mode
516071d4279SBram Moolenaar|:noremap|   :no[remap][!] {lhs} {rhs}
517d04b7507SBram Moolenaar				  same as ":map", no remapping for this {rhs}
518d04b7507SBram Moolenaar|:unmap|     :unm[ap] {lhs}	  remove the mapping of {lhs} for Normal and
519d04b7507SBram Moolenaar				     Visual mode
520d04b7507SBram Moolenaar|:unmap!|    :unm[ap]! {lhs}	  remove the mapping of {lhs} for Insert and
521d04b7507SBram Moolenaar				     Command-line mode
522d04b7507SBram Moolenaar|:map_l|     :ma[p] [lhs]	  list mappings (starting with [lhs]) for
523d04b7507SBram Moolenaar				     Normal and Visual mode
524d04b7507SBram Moolenaar|:map_l!|    :ma[p]! [lhs]	  list mappings (starting with [lhs]) for
525d04b7507SBram Moolenaar				     Insert and Command-line mode
526071d4279SBram Moolenaar|:cmap|      :cmap/:cunmap/:cnoremap
527071d4279SBram Moolenaar				  like ":map!"/":unmap!"/":noremap!" but for
528071d4279SBram Moolenaar				     Command-line mode only
529071d4279SBram Moolenaar|:imap|      :imap/:iunmap/:inoremap
530071d4279SBram Moolenaar				  like ":map!"/":unmap!"/":noremap!" but for
531071d4279SBram Moolenaar				     Insert mode only
532071d4279SBram Moolenaar|:nmap|      :nmap/:nunmap/:nnoremap
533071d4279SBram Moolenaar				  like ":map"/":unmap"/":noremap" but for
534071d4279SBram Moolenaar				     Normal mode only
535071d4279SBram Moolenaar|:vmap|      :vmap/:vunmap/:vnoremap
536071d4279SBram Moolenaar				  like ":map"/":unmap"/":noremap" but for
537071d4279SBram Moolenaar				     Visual mode only
538071d4279SBram Moolenaar|:omap|      :omap/:ounmap/:onoremap
539071d4279SBram Moolenaar				  like ":map"/":unmap"/":noremap" but only for
540071d4279SBram Moolenaar				     when an operator is pending
541071d4279SBram Moolenaar|:mapc|      :mapc[lear]	  remove mappings for Normal and Visual mode
542071d4279SBram Moolenaar|:mapc|      :mapc[lear]!	  remove mappings for Insert and Cmdline mode
543071d4279SBram Moolenaar|:imapc|     :imapc[lear]	  remove mappings for Insert mode
544071d4279SBram Moolenaar|:vmapc|     :vmapc[lear]	  remove mappings for Visual mode
545071d4279SBram Moolenaar|:omapc|     :omapc[lear]	  remove mappings for Operator-pending mode
546071d4279SBram Moolenaar|:nmapc|     :nmapc[lear]	  remove mappings for Normal mode
547071d4279SBram Moolenaar|:cmapc|     :cmapc[lear]	  remove mappings for Cmdline mode
548071d4279SBram Moolenaar|:mkexrc|    :mk[exrc][!] [file]  write current mappings, abbreviations, and
549071d4279SBram Moolenaar				     settings to [file] (default: ".exrc";
550071d4279SBram Moolenaar				     use ! to overwrite)
551071d4279SBram Moolenaar|:mkvimrc|   :mkv[imrc][!] [file]
552071d4279SBram Moolenaar				  same as ":mkexrc", but with default ".vimrc"
553071d4279SBram Moolenaar|:mksession| :mks[ession][!] [file]
554071d4279SBram Moolenaar				  like ":mkvimrc", but store current files,
555071d4279SBram Moolenaar				     windows, etc. too, to be able to continue
556d04b7507SBram Moolenaar				     this session later
557071d4279SBram Moolenaar------------------------------------------------------------------------------
558071d4279SBram Moolenaar*Q_ab*		Abbreviations
559071d4279SBram Moolenaar
560071d4279SBram Moolenaar|:abbreviate|	:ab[breviate] {lhs} {rhs}  add abbreviation for {lhs} to {rhs}
561071d4279SBram Moolenaar|:abbreviate|	:ab[breviate] {lhs}	   show abbr's that start with {lhs}
562071d4279SBram Moolenaar|:abbreviate|	:ab[breviate]		   show all abbreviations
563071d4279SBram Moolenaar|:unabbreviate|	:una[bbreviate] {lhs}	   remove abbreviation for {lhs}
564071d4279SBram Moolenaar|:noreabbrev|	:norea[bbrev] [lhs] [rhs]  like ":ab", but don't remap [rhs]
565071d4279SBram Moolenaar|:iabbrev|	:iab/:iunab/:inoreab	   like ":ab", but only for Insert mode
566071d4279SBram Moolenaar|:cabbrev|	:cab/:cunab/:cnoreab	   like ":ab", but only for
567071d4279SBram Moolenaar						Command-line mode
568071d4279SBram Moolenaar|:abclear|	:abc[lear]		   remove all abbreviations
569071d4279SBram Moolenaar|:cabclear|	:cabc[lear]		   remove all abbr's for Cmdline mode
570071d4279SBram Moolenaar|:iabclear|	:iabc[lear]		   remove all abbr's for Insert mode
571071d4279SBram Moolenaar------------------------------------------------------------------------------
572071d4279SBram Moolenaar*Q_op*		Options
573071d4279SBram Moolenaar
574d04b7507SBram Moolenaar|:set|		:se[t]			  show all modified options
575d04b7507SBram Moolenaar|:set|		:se[t] all		  show all non-termcap options
576d04b7507SBram Moolenaar|:set|		:se[t] termcap		  show all termcap options
577d04b7507SBram Moolenaar|:set|		:se[t] {option}		  set boolean option (switch it on),
578d04b7507SBram Moolenaar					  show string or number option
579d04b7507SBram Moolenaar|:set|		:se[t] no{option}	  reset boolean option (switch it off)
580d04b7507SBram Moolenaar|:set|		:se[t] inv{option}	  invert boolean option
581d04b7507SBram Moolenaar|:set|		:se[t] {option}={value}	  set string/number option to {value}
582071d4279SBram Moolenaar|:set|		:se[t] {option}+={value}  append {value} to string option, add
583071d4279SBram Moolenaar					  {value} to number option
584071d4279SBram Moolenaar|:set|		:se[t] {option}-={value}  remove {value} to string option,
585071d4279SBram Moolenaar					  subtract {value} from number option
586d04b7507SBram Moolenaar|:set|		:se[t] {option}?	  show value of {option}
587d04b7507SBram Moolenaar|:set|		:se[t] {option}&	  reset {option} to its default value
588071d4279SBram Moolenaar
589071d4279SBram Moolenaar|:setlocal|	:setl[ocal]		  like ":set" but set the local value
590071d4279SBram Moolenaar					  for options that have one
591071d4279SBram Moolenaar|:setglobal|	:setg[lobal]		  like ":set" but set the global value
592071d4279SBram Moolenaar					  of a local option
593071d4279SBram Moolenaar
594d04b7507SBram Moolenaar|:fix|		:fix[del]		  set value of 't_kD' according to
595d04b7507SBram Moolenaar					  value of 't_kb'
596d04b7507SBram Moolenaar|:options|	:opt[ions]		  open a new window to view and set
597071d4279SBram Moolenaar					  options, grouped by functionality,
598071d4279SBram Moolenaar					  a one line explanation and links to
599d04b7507SBram Moolenaar					  the help
600071d4279SBram Moolenaar
601071d4279SBram MoolenaarShort explanation of each option:		*option-list*
602362e1a30SBram Moolenaar'aleph'		  'al'	    ASCII code of the letter Aleph (Hebrew)
603362e1a30SBram Moolenaar'allowrevins'	  'ari'     allow CTRL-_ in Insert and Command-line mode
60425c9c680SBram Moolenaar'altkeymap'	  'akm'	    obsolete option for Farsi
605362e1a30SBram Moolenaar'ambiwidth'	  'ambw'    what to do with Unicode chars of ambiguous width
606362e1a30SBram Moolenaar'antialias'	  'anti'    Mac OS X: use smooth, antialiased fonts
607362e1a30SBram Moolenaar'autochdir'	  'acd'     change directory to the file in the current window
6088b9abfd8SBram Moolenaar'autoshelldir'	  'asd'     change directory to the shell's current directory
609362e1a30SBram Moolenaar'arabic'	  'arab'    for Arabic as a default second language
610362e1a30SBram Moolenaar'arabicshape'	  'arshape' do shaping for Arabic characters
611362e1a30SBram Moolenaar'autoindent'	  'ai'	    take indent for new line from previous line
612362e1a30SBram Moolenaar'autoread'	  'ar'	    autom. read file when changed outside of Vim
613362e1a30SBram Moolenaar'autowrite'	  'aw'	    automatically write file if changed
614362e1a30SBram Moolenaar'autowriteall'	  'awa'     as 'autowrite', but works with more commands
615362e1a30SBram Moolenaar'background'	  'bg'	    "dark" or "light", used for highlight colors
616362e1a30SBram Moolenaar'backspace'	  'bs'	    how backspace works at start of line
617362e1a30SBram Moolenaar'backup'	  'bk'	    keep backup file after overwriting a file
618362e1a30SBram Moolenaar'backupcopy'	  'bkc'     make backup as a copy, don't rename the file
619362e1a30SBram Moolenaar'backupdir'	  'bdir'    list of directories for the backup file
620362e1a30SBram Moolenaar'backupext'	  'bex'     extension used for the backup file
621362e1a30SBram Moolenaar'backupskip'	  'bsk'     no backup for files that match these patterns
622362e1a30SBram Moolenaar'balloondelay'	  'bdlay'   delay in mS before a balloon may pop up
623a2a80162SBram Moolenaar'ballooneval'	  'beval'     switch on balloon evaluation in the GUI
624a2a80162SBram Moolenaar'balloonevalterm' 'bevalterm' switch on balloon evaluation in the terminal
625362e1a30SBram Moolenaar'balloonexpr'	  'bexpr'   expression to show in balloon
626f9132810SBram Moolenaar'belloff'	  'bo'	    do not ring the bell for these reasons
627362e1a30SBram Moolenaar'binary'	  'bin'     read/write/edit file in binary mode
628362e1a30SBram Moolenaar'bioskey'	  'biosk'   MS-DOS: use bios calls for input characters
629362e1a30SBram Moolenaar'bomb'			    prepend a Byte Order Mark to the file
630362e1a30SBram Moolenaar'breakat'	  'brk'     characters that may cause a line break
631946e27abSBram Moolenaar'breakindent'	  'bri'     wrapped line repeats indent
632946e27abSBram Moolenaar'breakindentopt'  'briopt'  settings for 'breakindent'
633362e1a30SBram Moolenaar'browsedir'	  'bsdir'   which directory to start browsing in
634362e1a30SBram Moolenaar'bufhidden'	  'bh'	    what to do when buffer is no longer in window
635362e1a30SBram Moolenaar'buflisted'	  'bl'	    whether the buffer shows up in the buffer list
636362e1a30SBram Moolenaar'buftype'	  'bt'	    special type of buffer
637362e1a30SBram Moolenaar'casemap'	  'cmp'     specifies how case of letters is changed
638362e1a30SBram Moolenaar'cdpath'	  'cd'	    list of directories searched with ":cd"
639362e1a30SBram Moolenaar'cedit'			    key used to open the command-line window
640362e1a30SBram Moolenaar'charconvert'	  'ccv'     expression for character encoding conversion
641362e1a30SBram Moolenaar'cindent'	  'cin'     do C program indenting
642362e1a30SBram Moolenaar'cinkeys'	  'cink'    keys that trigger indent when 'cindent' is set
643362e1a30SBram Moolenaar'cinoptions'	  'cino'    how to do indenting when 'cindent' is set
644362e1a30SBram Moolenaar'cinwords'	  'cinw'    words where 'si' and 'cin' add an indent
645362e1a30SBram Moolenaar'clipboard'	  'cb'	    use the clipboard as the unnamed register
646362e1a30SBram Moolenaar'cmdheight'	  'ch'	    number of lines to use for the command-line
647362e1a30SBram Moolenaar'cmdwinheight'	  'cwh'     height of the command-line window
648607cc1e0SBram Moolenaar'colorcolumn'	  'cc'	    columns to highlight
649362e1a30SBram Moolenaar'columns'	  'co'	    number of columns in the display
650362e1a30SBram Moolenaar'comments'	  'com'     patterns that can start a comment line
651362e1a30SBram Moolenaar'commentstring'   'cms'     template for comments; used for fold marker
652362e1a30SBram Moolenaar'compatible'	  'cp'	    behave Vi-compatible as much as possible
653362e1a30SBram Moolenaar'complete'	  'cpt'     specify how Insert mode completion works
654362e1a30SBram Moolenaar'completefunc'	  'cfu'     function to be used for Insert mode completion
655362e1a30SBram Moolenaar'completeopt'	  'cot'     options for Insert mode completion
65636e4d985SBram Moolenaar'completepopup'	  'cpp'     options for the Insert mode completion info popup
657088e8e34SBram Moolenaar'completeslash'	  'csl'	    like 'shellslash' for completion
658f5963f71SBram Moolenaar'concealcursor'	  'cocu'    whether concealable text is hidden in cursor line
659f5963f71SBram Moolenaar'conceallevel'	  'cole'    whether concealable text is shown or hidden
660362e1a30SBram Moolenaar'confirm'	  'cf'	    ask what to do about unsaved/read-only files
661362e1a30SBram Moolenaar'conskey'	  'consk'   get keys directly from console (MS-DOS only)
662362e1a30SBram Moolenaar'copyindent'	  'ci'	    make 'autoindent' use existing indent structure
663362e1a30SBram Moolenaar'cpoptions'	  'cpo'     flags for Vi-compatible behavior
664b702c84dSBram Moolenaar'cryptmethod'	  'cm'	    type of encryption to use for file writing
665362e1a30SBram Moolenaar'cscopepathcomp'  'cspc'    how many components of the path to show
666362e1a30SBram Moolenaar'cscopeprg'       'csprg'   command to execute cscope
667362e1a30SBram Moolenaar'cscopequickfix'  'csqf'    use quickfix window for cscope results
668251e1912SBram Moolenaar'cscoperelative'  'csre'    Use cscope.out path basename as prefix
669362e1a30SBram Moolenaar'cscopetag'       'cst'     use cscope for tag commands
670362e1a30SBram Moolenaar'cscopetagorder'  'csto'    determines ":cstag" search order
671362e1a30SBram Moolenaar'cscopeverbose'   'csverb'  give messages when adding a cscope database
672b2c0350cSBram Moolenaar'cursorbind'	  'crb'     move cursor in window as it moves in other windows
67360f8377eSBram Moolenaar'cursorcolumn'	  'cuc'	    highlight the screen column of the cursor
67460f8377eSBram Moolenaar'cursorline'	  'cul'	    highlight the screen line of the cursor
675410e98a7SBram Moolenaar'cursorlineopt'	  'culopt'  settings for 'cursorline'
676362e1a30SBram Moolenaar'debug'			    set to "msg" to see all error messages
677362e1a30SBram Moolenaar'define'	  'def'     pattern to be used to find a macro definition
678362e1a30SBram Moolenaar'delcombine'	  'deco'    delete combining characters on their own
679362e1a30SBram Moolenaar'dictionary'	  'dict'    list of file names used for keyword completion
680362e1a30SBram Moolenaar'diff'			    use diff mode for the current window
681362e1a30SBram Moolenaar'diffexpr'	  'dex'     expression used to obtain a diff file
682362e1a30SBram Moolenaar'diffopt'	  'dip'     options for using diff mode
683362e1a30SBram Moolenaar'digraph'	  'dg'	    enable the entering of digraphs in Insert mode
684362e1a30SBram Moolenaar'directory'	  'dir'     list of directory names for the swap file
685362e1a30SBram Moolenaar'display'	  'dy'	    list of flags for how to display text
686362e1a30SBram Moolenaar'eadirection'	  'ead'     in which direction 'equalalways' works
687362e1a30SBram Moolenaar'edcompatible'	  'ed'	    toggle flags of ":substitute" command
68803413f44SBram Moolenaar'emoji'		  'emo'	    emoji characters are considered full width
689362e1a30SBram Moolenaar'encoding'	  'enc'     encoding used internally
690362e1a30SBram Moolenaar'endofline'	  'eol'     write <EOL> for last line in file
691362e1a30SBram Moolenaar'equalalways'	  'ea'	    windows are automatically made the same size
692362e1a30SBram Moolenaar'equalprg'	  'ep'	    external program to use for "=" command
693362e1a30SBram Moolenaar'errorbells'	  'eb'	    ring the bell for error messages
694362e1a30SBram Moolenaar'errorfile'	  'ef'	    name of the errorfile for the QuickFix mode
695362e1a30SBram Moolenaar'errorformat'	  'efm'     description of the lines in the error file
696362e1a30SBram Moolenaar'esckeys'	  'ek'	    recognize function keys in Insert mode
697362e1a30SBram Moolenaar'eventignore'	  'ei'	    autocommand events that are ignored
698362e1a30SBram Moolenaar'expandtab'	  'et'	    use spaces when <Tab> is inserted
699362e1a30SBram Moolenaar'exrc'		  'ex'	    read .vimrc and .exrc in the current directory
700207f0093SBram Moolenaar'fileencoding'	  'fenc'    file encoding for multibyte text
701362e1a30SBram Moolenaar'fileencodings'   'fencs'   automatically detected character encodings
702362e1a30SBram Moolenaar'fileformat'	  'ff'	    file format used for file I/O
703362e1a30SBram Moolenaar'fileformats'	  'ffs'     automatically detected values for 'fileformat'
70491fc43d3SBram Moolenaar'fileignorecase'  'fic'     ignore case when using file names
705362e1a30SBram Moolenaar'filetype'	  'ft'	    type of file, used for autocommands
706362e1a30SBram Moolenaar'fillchars'	  'fcs'     characters to use for displaying special items
707f9132810SBram Moolenaar'fixendofline'	  'fixeol'  make sure last line in file has <EOL>
70825c9c680SBram Moolenaar'fkmap'		  'fk'	    obsolete option for Farsi
709362e1a30SBram Moolenaar'foldclose'	  'fcl'     close a fold when the cursor leaves it
710362e1a30SBram Moolenaar'foldcolumn'	  'fdc'     width of the column used to indicate folds
711362e1a30SBram Moolenaar'foldenable'	  'fen'     set to display all folds open
712362e1a30SBram Moolenaar'foldexpr'	  'fde'     expression used when 'foldmethod' is "expr"
713362e1a30SBram Moolenaar'foldignore'	  'fdi'     ignore lines when 'foldmethod' is "indent"
714362e1a30SBram Moolenaar'foldlevel'	  'fdl'     close folds with a level higher than this
715362e1a30SBram Moolenaar'foldlevelstart'  'fdls'    'foldlevel' when starting to edit a file
716362e1a30SBram Moolenaar'foldmarker'	  'fmr'     markers used when 'foldmethod' is "marker"
717362e1a30SBram Moolenaar'foldmethod'	  'fdm'     folding type
718362e1a30SBram Moolenaar'foldminlines'	  'fml'     minimum number of lines for a fold to be closed
719362e1a30SBram Moolenaar'foldnestmax'	  'fdn'     maximum fold depth
720362e1a30SBram Moolenaar'foldopen'	  'fdo'     for which commands a fold will be opened
721362e1a30SBram Moolenaar'foldtext'	  'fdt'     expression used to display for a closed fold
722f9132810SBram Moolenaar'formatexpr'	  'fex'     expression used with "gq" command
723362e1a30SBram Moolenaar'formatlistpat'   'flp'     pattern used to recognize a list header
724362e1a30SBram Moolenaar'formatoptions'   'fo'	    how automatic formatting is to be done
725362e1a30SBram Moolenaar'formatprg'	  'fp'	    name of external program used with "gq" command
726362e1a30SBram Moolenaar'fsync'		  'fs'	    whether to invoke fsync() after file write
727362e1a30SBram Moolenaar'gdefault'	  'gd'	    the ":substitute" flag 'g' is default on
728362e1a30SBram Moolenaar'grepformat'	  'gfm'     format of 'grepprg' output
729362e1a30SBram Moolenaar'grepprg'	  'gp'	    program to use for ":grep"
730362e1a30SBram Moolenaar'guicursor'	  'gcr'     GUI: settings for cursor shape and blinking
731362e1a30SBram Moolenaar'guifont'	  'gfn'     GUI: Name(s) of font(s) to be used
732207f0093SBram Moolenaar'guifontset'	  'gfs'     GUI: Names of multibyte fonts to be used
733362e1a30SBram Moolenaar'guifontwide'	  'gfw'     list of font names for double-wide characters
734362e1a30SBram Moolenaar'guiheadroom'	  'ghr'     GUI: pixels room for window decorations
735*079ba76aSBram Moolenaar'guiligatures'	  'gli'	    GTK GUI: ASCII characters that can form shapes
736362e1a30SBram Moolenaar'guioptions'	  'go'	    GUI: Which components and options are used
737362e1a30SBram Moolenaar'guipty'		    GUI: try to use a pseudo-tty for ":!" commands
738362e1a30SBram Moolenaar'guitablabel'	  'gtl'     GUI: custom label for a tab page
73957657d85SBram Moolenaar'guitabtooltip'   'gtt'     GUI: custom tooltip for a tab page
740362e1a30SBram Moolenaar'helpfile'	  'hf'	    full path name of the main help file
741362e1a30SBram Moolenaar'helpheight'	  'hh'	    minimum height of a new help window
742362e1a30SBram Moolenaar'helplang'	  'hlg'     preferred help languages
743362e1a30SBram Moolenaar'hidden'	  'hid'     don't unload buffer when it is |abandon|ed
744362e1a30SBram Moolenaar'highlight'	  'hl'	    sets highlighting mode for various occasions
745362e1a30SBram Moolenaar'history'	  'hi'	    number of command-lines that are remembered
746362e1a30SBram Moolenaar'hkmap'		  'hk'	    Hebrew keyboard mapping
747362e1a30SBram Moolenaar'hkmapp'	  'hkp'     phonetic Hebrew keyboard mapping
748f9132810SBram Moolenaar'hlsearch'	  'hls'     highlight matches with last search pattern
749362e1a30SBram Moolenaar'icon'			    let Vim set the text of the window icon
750362e1a30SBram Moolenaar'iconstring'		    string to use for the Vim icon text
751362e1a30SBram Moolenaar'ignorecase'	  'ic'	    ignore case in search patterns
75214b6945eSBram Moolenaar'imactivatefunc'  'imaf'    function to enable/disable the X input method
753f9132810SBram Moolenaar'imactivatekey'   'imak'    key that activates the X input method
754362e1a30SBram Moolenaar'imcmdline'	  'imc'     use IM when starting to edit a command line
755362e1a30SBram Moolenaar'imdisable'	  'imd'     do not use the IM in any mode
756362e1a30SBram Moolenaar'iminsert'	  'imi'     use :lmap or IM in Insert mode
757362e1a30SBram Moolenaar'imsearch'	  'ims'     use :lmap or IM when typing a search pattern
75814b6945eSBram Moolenaar'imstatusfunc'    'imsf'    function to obtain X input method status
75937c64c78SBram Moolenaar'imstyle'	  'imst'    specifies the input style of the input method
760362e1a30SBram Moolenaar'include'	  'inc'     pattern to be used to find an include file
761362e1a30SBram Moolenaar'includeexpr'	  'inex'    expression used to process an include line
762362e1a30SBram Moolenaar'incsearch'	  'is'	    highlight match while typing search pattern
763362e1a30SBram Moolenaar'indentexpr'	  'inde'    expression used to obtain the indent of a line
764362e1a30SBram Moolenaar'indentkeys'	  'indk'    keys that trigger indenting with 'indentexpr'
765362e1a30SBram Moolenaar'infercase'	  'inf'     adjust case of match for keyword completion
766362e1a30SBram Moolenaar'insertmode'	  'im'	    start the edit of a file in Insert mode
767362e1a30SBram Moolenaar'isfname'	  'isf'     characters included in file names and pathnames
768362e1a30SBram Moolenaar'isident'	  'isi'     characters included in identifiers
769362e1a30SBram Moolenaar'iskeyword'	  'isk'     characters included in keywords
770362e1a30SBram Moolenaar'isprint'	  'isp'     printable characters
771362e1a30SBram Moolenaar'joinspaces'	  'js'	    two spaces after a period with a join command
772362e1a30SBram Moolenaar'key'			    encryption key
773362e1a30SBram Moolenaar'keymap'	  'kmp'     name of a keyboard mapping
774362e1a30SBram Moolenaar'keymodel'	  'km'	    enable starting/stopping selection with keys
775362e1a30SBram Moolenaar'keywordprg'	  'kp'	    program to use for the "K" command
776362e1a30SBram Moolenaar'langmap'	  'lmap'    alphabetic characters for other language mode
777362e1a30SBram Moolenaar'langmenu'	  'lm'	    language to be used for the menus
77825c9c680SBram Moolenaar'langnoremap'	  'lnr'	    do not apply 'langmap' to mapped characters
779e4a3bcf2SBram Moolenaar'langremap'	  'lrm'	    do apply 'langmap' to mapped characters
780362e1a30SBram Moolenaar'laststatus'	  'ls'	    tells when last window has status lines
781362e1a30SBram Moolenaar'lazyredraw'	  'lz'	    don't redraw while executing macros
782362e1a30SBram Moolenaar'linebreak'	  'lbr'     wrap long lines at a blank
783362e1a30SBram Moolenaar'lines'			    number of lines in the display
784362e1a30SBram Moolenaar'linespace'	  'lsp'     number of pixel lines to use between characters
785362e1a30SBram Moolenaar'lisp'			    automatic indenting for Lisp
786362e1a30SBram Moolenaar'lispwords'	  'lw'	    words that change how lisp indenting works
787362e1a30SBram Moolenaar'list'			    show <Tab> and <EOL>
788362e1a30SBram Moolenaar'listchars'	  'lcs'     characters for displaying in list mode
789362e1a30SBram Moolenaar'loadplugins'	  'lpl'     load plugin scripts when starting up
790b4ff518dSBram Moolenaar'luadll'		    name of the Lua dynamic library
791f9393ef5SBram Moolenaar'macatsui'		    Mac GUI: use ATSUI text drawing
792362e1a30SBram Moolenaar'magic'			    changes special characters in search patterns
793362e1a30SBram Moolenaar'makeef'	  'mef'     name of the errorfile for ":make"
7942c7292dcSBram Moolenaar'makeencoding'	  'menc'    encoding of external make/grep commands
795362e1a30SBram Moolenaar'makeprg'	  'mp'	    program to use for the ":make" command
796362e1a30SBram Moolenaar'matchpairs'	  'mps'     pairs of characters that "%" can match
797362e1a30SBram Moolenaar'matchtime'	  'mat'     tenths of a second to show matching paren
798eca15757SBram Moolenaar'maxcombine'	  'mco'     maximum nr of combining characters displayed
799362e1a30SBram Moolenaar'maxfuncdepth'	  'mfd'     maximum recursive depth for user functions
800362e1a30SBram Moolenaar'maxmapdepth'	  'mmd'     maximum recursive depth for mapping
801362e1a30SBram Moolenaar'maxmem'	  'mm'	    maximum memory (in Kbyte) used for one buffer
802362e1a30SBram Moolenaar'maxmempattern'   'mmp'     maximum memory (in Kbyte) used for pattern search
803362e1a30SBram Moolenaar'maxmemtot'	  'mmt'     maximum memory (in Kbyte) used for all buffers
804362e1a30SBram Moolenaar'menuitems'	  'mis'     maximum number of items in a menu
805362e1a30SBram Moolenaar'mkspellmem'	  'msm'     memory used before |:mkspell| compresses the tree
806362e1a30SBram Moolenaar'modeline'	  'ml'	    recognize modelines at start or end of file
80768e6560bSBram Moolenaar'modelineexpr'	  'mle'	    allow setting expression options from a modeline
808362e1a30SBram Moolenaar'modelines'	  'mls'     number of lines checked for modelines
809362e1a30SBram Moolenaar'modifiable'	  'ma'	    changes to the text are not possible
810362e1a30SBram Moolenaar'modified'	  'mod'     buffer has been modified
811362e1a30SBram Moolenaar'more'			    pause listings when the whole screen is filled
812362e1a30SBram Moolenaar'mouse'			    enable the use of mouse clicks
813362e1a30SBram Moolenaar'mousefocus'	  'mousef'  keyboard focus follows the mouse
814362e1a30SBram Moolenaar'mousehide'	  'mh'	    hide mouse pointer while typing
815362e1a30SBram Moolenaar'mousemodel'	  'mousem'  changes meaning of mouse buttons
816362e1a30SBram Moolenaar'mouseshape'	  'mouses'  shape of the mouse pointer in different modes
817362e1a30SBram Moolenaar'mousetime'	  'mouset'  max time between mouse double-click
818362e1a30SBram Moolenaar'mzquantum'	  'mzq'     the interval between polls for MzScheme threads
81925c9c680SBram Moolenaar'mzschemedll'		    name of the MzScheme dynamic library
82025c9c680SBram Moolenaar'mzschemegcdll'		    name of the MzScheme dynamic library for GC
821362e1a30SBram Moolenaar'nrformats'	  'nf'	    number formats recognized for CTRL-A command
822362e1a30SBram Moolenaar'number'	  'nu'	    print the line number in front of each line
823362e1a30SBram Moolenaar'numberwidth'	  'nuw'     number of columns used for the line number
824362e1a30SBram Moolenaar'omnifunc'	  'ofu'     function for filetype-specific completion
8259964e468SBram Moolenaar'opendevice'	  'odev'    allow reading/writing devices on MS-Windows
8269964e468SBram Moolenaar'operatorfunc'	  'opfunc'  function to be called for |g@| operator
827251e1912SBram Moolenaar'osfiletype'	  'oft'     no longer supported
828f391327aSBram Moolenaar'packpath'	  'pp'      list of directories used for packages
829362e1a30SBram Moolenaar'paragraphs'	  'para'    nroff macros that separate paragraphs
830362e1a30SBram Moolenaar'paste'			    allow pasting text
831362e1a30SBram Moolenaar'pastetoggle'	  'pt'	    key code that causes 'paste' to toggle
832362e1a30SBram Moolenaar'patchexpr'	  'pex'     expression used to patch a file
833362e1a30SBram Moolenaar'patchmode'	  'pm'	    keep the oldest version of a file
834362e1a30SBram Moolenaar'path'		  'pa'	    list of directories searched with "gf" et.al.
835b4ff518dSBram Moolenaar'perldll'		    name of the Perl dynamic library
836362e1a30SBram Moolenaar'preserveindent'  'pi'	    preserve the indent structure when reindenting
837362e1a30SBram Moolenaar'previewheight'   'pvh'     height of the preview window
83885850f3aSBram Moolenaar'previewpopup'    'pvp'     use popup window for preview
839362e1a30SBram Moolenaar'previewwindow'   'pvw'     identifies the preview window
840362e1a30SBram Moolenaar'printdevice'	  'pdev'    name of the printer to be used for :hardcopy
841362e1a30SBram Moolenaar'printencoding'   'penc'    encoding to be used for printing
842362e1a30SBram Moolenaar'printexpr'	  'pexpr'   expression used to print PostScript for :hardcopy
843362e1a30SBram Moolenaar'printfont'	  'pfn'     name of the font to be used for :hardcopy
844362e1a30SBram Moolenaar'printheader'	  'pheader' format of the header used for :hardcopy
845362e1a30SBram Moolenaar'printmbcharset'  'pmbcs'   CJK character set to be used for :hardcopy
846362e1a30SBram Moolenaar'printmbfont'	  'pmbfn'   font names to be used for CJK output of :hardcopy
847362e1a30SBram Moolenaar'printoptions'	  'popt'    controls the format of :hardcopy output
848a02a551eSBram Moolenaar'prompt'	  'prompt'  enable prompt in Ex mode
849833dc523SBram Moolenaar'pumheight'	  'ph'	    maximum height of the popup menu
85022f1d0e3SBram Moolenaar'pumwidth'	  'pw'	    minimum width of the popup menu
851b4ff518dSBram Moolenaar'pythondll'		    name of the Python 2 dynamic library
85294073167SBram Moolenaar'pythonhome'		    name of the Python 2 home directory
853b4ff518dSBram Moolenaar'pythonthreedll'	    name of the Python 3 dynamic library
85494073167SBram Moolenaar'pythonthreehome'	    name of the Python 3 home directory
855f42dd3c3SBram Moolenaar'pyxversion'	  'pyx'	    Python version used for pyx* commands
856acc22406SBram Moolenaar'quickfixtextfunc' 'qftf'   function for the text in the quickfix window
857362e1a30SBram Moolenaar'quoteescape'	  'qe'	    escape characters used in a string
858362e1a30SBram Moolenaar'readonly'	  'ro'	    disallow writing the buffer
8593577c6faSBram Moolenaar'redrawtime'	  'rdt'     timeout for 'hlsearch' and |:match| highlighting
860e6ae6225SBram Moolenaar'regexpengine'	  're'	    default regexp engine to use
86164486671SBram Moolenaar'relativenumber'  'rnu'	    show relative line number in front of each line
862362e1a30SBram Moolenaar'remap'			    allow mappings to work recursively
863fb539273SBram Moolenaar'renderoptions'	  'rop'	    options for text rendering on Windows
864362e1a30SBram Moolenaar'report'		    threshold for reporting nr. of lines changed
865362e1a30SBram Moolenaar'restorescreen'   'rs'	    Win32: restore screen when exiting
866362e1a30SBram Moolenaar'revins'	  'ri'	    inserting characters will work backwards
867362e1a30SBram Moolenaar'rightleft'	  'rl'	    window is right-to-left oriented
868362e1a30SBram Moolenaar'rightleftcmd'	  'rlc'     commands for which editing works right-to-left
869b4ff518dSBram Moolenaar'rubydll'		    name of the Ruby dynamic library
870362e1a30SBram Moolenaar'ruler'		  'ru'	    show cursor line and column in the status line
871362e1a30SBram Moolenaar'rulerformat'	  'ruf'     custom format for the ruler
872362e1a30SBram Moolenaar'runtimepath'	  'rtp'     list of directories used for runtime files
873362e1a30SBram Moolenaar'scroll'	  'scr'     lines to scroll with CTRL-U and CTRL-D
874362e1a30SBram Moolenaar'scrollbind'	  'scb'     scroll in window as other windows scroll
8755ef1c6a4SBram Moolenaar'scrollfocus'	  'scf'     scroll wheel applies to window under pointer
876362e1a30SBram Moolenaar'scrolljump'	  'sj'	    minimum number of lines to scroll
877362e1a30SBram Moolenaar'scrolloff'	  'so'	    minimum nr. of lines above and below cursor
878362e1a30SBram Moolenaar'scrollopt'	  'sbo'     how 'scrollbind' should behave
879362e1a30SBram Moolenaar'sections'	  'sect'    nroff macros that separate sections
880362e1a30SBram Moolenaar'secure'		    secure mode for reading .vimrc in current dir
881362e1a30SBram Moolenaar'selection'	  'sel'     what type of selection to use
882362e1a30SBram Moolenaar'selectmode'	  'slm'     when to use Select mode instead of Visual mode
883362e1a30SBram Moolenaar'sessionoptions'  'ssop'    options for |:mksession|
884362e1a30SBram Moolenaar'shell'		  'sh'	    name of shell to use for external commands
885362e1a30SBram Moolenaar'shellcmdflag'	  'shcf'    flag to shell to execute one command
886362e1a30SBram Moolenaar'shellpipe'	  'sp'	    string to put output of ":make" in error file
887362e1a30SBram Moolenaar'shellquote'	  'shq'     quote character(s) for around shell command
888362e1a30SBram Moolenaar'shellredir'	  'srr'     string to put output of filter in a temp file
889362e1a30SBram Moolenaar'shellslash'	  'ssl'     use forward slash for shell file names
890362e1a30SBram Moolenaar'shelltemp'	  'stmp'    whether to use a temp file for shell commands
891362e1a30SBram Moolenaar'shelltype'	  'st'	    Amiga: influences how to use a shell
892db7207e6SBram Moolenaar'shellxescape'	  'sxe'     characters to escape when 'shellxquote' is (
893362e1a30SBram Moolenaar'shellxquote'	  'sxq'     like 'shellquote', but include redirection
894362e1a30SBram Moolenaar'shiftround'	  'sr'	    round indent to multiple of shiftwidth
895362e1a30SBram Moolenaar'shiftwidth'	  'sw'	    number of spaces to use for (auto)indent step
896362e1a30SBram Moolenaar'shortmess'	  'shm'     list of flags, reduce length of messages
8975666fcd0SBram Moolenaar'shortname'	  'sn'	    Filenames assumed to be 8.3 chars
898362e1a30SBram Moolenaar'showbreak'	  'sbr'     string to use at the start of wrapped lines
899362e1a30SBram Moolenaar'showcmd'	  'sc'	    show (partial) command in status line
900362e1a30SBram Moolenaar'showfulltag'	  'sft'     show full tag pattern when completing tag
901362e1a30SBram Moolenaar'showmatch'	  'sm'	    briefly jump to matching bracket if insert one
902362e1a30SBram Moolenaar'showmode'	  'smd'     message on status line to show current mode
903362e1a30SBram Moolenaar'showtabline'	  'stal'    tells when the tab pages line is displayed
904362e1a30SBram Moolenaar'sidescroll'	  'ss'	    minimum number of columns to scroll horizontal
905362e1a30SBram Moolenaar'sidescrolloff'   'siso'    min. nr. of columns to left and right of cursor
90609521313SBram Moolenaar'signcolumn'	  'scl'	    when to display the sign column
907362e1a30SBram Moolenaar'smartcase'	  'scs'     no ignore case when pattern has uppercase
908362e1a30SBram Moolenaar'smartindent'	  'si'	    smart autoindenting for C programs
909362e1a30SBram Moolenaar'smarttab'	  'sta'     use 'shiftwidth' when inserting <Tab>
910362e1a30SBram Moolenaar'softtabstop'	  'sts'     number of spaces that <Tab> uses while editing
911362e1a30SBram Moolenaar'spell'			    enable spell checking
912362e1a30SBram Moolenaar'spellcapcheck'   'spc'     pattern to locate end of a sentence
913362e1a30SBram Moolenaar'spellfile'	  'spf'     files where |zg| and |zw| store words
914362e1a30SBram Moolenaar'spelllang'	  'spl'     language(s) to do spell checking for
91565e0d77aSBram Moolenaar'spelloptions'	  'spo'     options for spell checking
916362e1a30SBram Moolenaar'spellsuggest'	  'sps'     method(s) used to suggest spelling corrections
917362e1a30SBram Moolenaar'splitbelow'	  'sb'	    new window from split is below the current one
918362e1a30SBram Moolenaar'splitright'	  'spr'     new window is put right of the current one
9193577c6faSBram Moolenaar'startofline'	  'sol'     commands move cursor to first non-blank in line
920362e1a30SBram Moolenaar'statusline'	  'stl'     custom format for the status line
921362e1a30SBram Moolenaar'suffixes'	  'su'	    suffixes that are ignored with multiple match
922362e1a30SBram Moolenaar'suffixesadd'	  'sua'     suffixes added when searching for a file
923362e1a30SBram Moolenaar'swapfile'	  'swf'     whether to use a swapfile for a buffer
924362e1a30SBram Moolenaar'swapsync'	  'sws'     how to sync the swap file
925362e1a30SBram Moolenaar'switchbuf'	  'swb'     sets behavior when switching to another buffer
926362e1a30SBram Moolenaar'synmaxcol'	  'smc'     maximum column to find syntax items
927362e1a30SBram Moolenaar'syntax'	  'syn'     syntax to be loaded for current buffer
928362e1a30SBram Moolenaar'tabline'	  'tal'     custom format for the console tab pages line
929362e1a30SBram Moolenaar'tabpagemax'	  'tpm'     maximum number of tab pages for |-p| and "tab all"
930f9132810SBram Moolenaar'tabstop'	  'ts'	    number of spaces that <Tab> in file uses
931362e1a30SBram Moolenaar'tagbsearch'	  'tbs'     use binary searching in tags files
9320f6562e9SBram Moolenaar'tagcase'	  'tc'      how to handle case when searching in tags files
93325c9c680SBram Moolenaar'tagfunc'	  'tfu'	    function to get list of tag matches
934362e1a30SBram Moolenaar'taglength'	  'tl'	    number of significant characters for a tag
935362e1a30SBram Moolenaar'tagrelative'	  'tr'	    file names in tag file are relative
936362e1a30SBram Moolenaar'tags'		  'tag'     list of file names used by the tag command
937362e1a30SBram Moolenaar'tagstack'	  'tgst'    push tags onto the tag stack
9388a5115cfSBram Moolenaar'tcldll'		    name of the Tcl dynamic library
939362e1a30SBram Moolenaar'term'			    name of the terminal
940362e1a30SBram Moolenaar'termbidi'	  'tbidi'   terminal takes care of bi-directionality
941362e1a30SBram Moolenaar'termencoding'	  'tenc'    character encoding used by the terminal
94206481427SBram Moolenaar'termguicolors'	  'tgc'     use GUI colors for the terminal
9437dda86f2SBram Moolenaar'termwinkey'	  'twk'	    key that precedes a Vim command in a terminal
9447dda86f2SBram Moolenaar'termwinscroll'   'twsl'    max number of scrollback lines in a terminal window
9457dda86f2SBram Moolenaar'termwinsize'	  'tws'	    size of a terminal window
946c6ddce3fSBram Moolenaar'termwintype'	  'twt'	    MS-Windows: type of pty to use for terminal window
947362e1a30SBram Moolenaar'terse'			    shorten some messages
948362e1a30SBram Moolenaar'textauto'	  'ta'	    obsolete, use 'fileformats'
949362e1a30SBram Moolenaar'textmode'	  'tx'	    obsolete, use 'fileformat'
950362e1a30SBram Moolenaar'textwidth'	  'tw'	    maximum width of text that is being inserted
951362e1a30SBram Moolenaar'thesaurus'	  'tsr'     list of thesaurus files for keyword completion
952160e994dSYegappan Lakshmanan'thesaurusfunc'	  'tsrfu'   function to be used for thesaurus completion
953362e1a30SBram Moolenaar'tildeop'	  'top'     tilde command "~" behaves like an operator
954362e1a30SBram Moolenaar'timeout'	  'to'	    time out on mappings and key codes
955362e1a30SBram Moolenaar'timeoutlen'	  'tm'	    time out time in milliseconds
956362e1a30SBram Moolenaar'title'			    let Vim set the title of the window
957362e1a30SBram Moolenaar'titlelen'		    percentage of 'columns' used for window title
958362e1a30SBram Moolenaar'titleold'		    old title, restored when exiting
959362e1a30SBram Moolenaar'titlestring'		    string to use for the Vim window title
960362e1a30SBram Moolenaar'toolbar'	  'tb'	    GUI: which items to show in the toolbar
961362e1a30SBram Moolenaar'toolbariconsize' 'tbis'    size of the toolbar icons (for GTK 2 only)
962362e1a30SBram Moolenaar'ttimeout'		    time out on mappings
963362e1a30SBram Moolenaar'ttimeoutlen'	  'ttm'     time out time for key codes in milliseconds
964362e1a30SBram Moolenaar'ttybuiltin'	  'tbi'     use built-in termcap before external termcap
965362e1a30SBram Moolenaar'ttyfast'	  'tf'	    indicates a fast terminal connection
966362e1a30SBram Moolenaar'ttymouse'	  'ttym'    type of mouse codes generated
967362e1a30SBram Moolenaar'ttyscroll'	  'tsl'     maximum number of lines for a scroll
968362e1a30SBram Moolenaar'ttytype'	  'tty'     alias for 'term'
9691d68952aSBram Moolenaar'undodir'	  'udir'    where to store undo files
9701d68952aSBram Moolenaar'undofile'	  'udf'	    save undo information in a file
971362e1a30SBram Moolenaar'undolevels'	  'ul'	    maximum number of changes that can be undone
972365bdf7aSBram Moolenaar'undoreload'	  'ur'	    max nr of lines to save for undo on a buffer reload
973362e1a30SBram Moolenaar'updatecount'	  'uc'	    after this many characters flush swap file
974362e1a30SBram Moolenaar'updatetime'	  'ut'	    after this many milliseconds flush swap file
975675e8d6aSBram Moolenaar'varsofttabstop'  'vsts'    a list of number of spaces when typing <Tab>
976675e8d6aSBram Moolenaar'vartabstop'	  'vts'	    a list of number of spaces for <Tab>s
977362e1a30SBram Moolenaar'verbose'	  'vbs'     give informative messages
978362e1a30SBram Moolenaar'verbosefile'	  'vfile'   file to write messages in
979362e1a30SBram Moolenaar'viewdir'	  'vdir'    directory where to store files with :mkview
980362e1a30SBram Moolenaar'viewoptions'	  'vop'     specifies what to save for :mkview
981362e1a30SBram Moolenaar'viminfo'	  'vi'	    use .viminfo file upon startup and exiting
982f55e4c86SBram Moolenaar'viminfofile'	  'vif'	    file name used for the viminfo file
983362e1a30SBram Moolenaar'virtualedit'	  've'	    when to use virtual editing
984362e1a30SBram Moolenaar'visualbell'	  'vb'	    use visual bell instead of beeping
985362e1a30SBram Moolenaar'warn'			    warn for shell command when buffer was changed
986996343d3SBram Moolenaar'weirdinvert'	  'wiv'	    for terminals that have weird inversion method
987362e1a30SBram Moolenaar'whichwrap'	  'ww'	    allow specified keys to cross line boundaries
988362e1a30SBram Moolenaar'wildchar'	  'wc'	    command-line character for wildcard expansion
989362e1a30SBram Moolenaar'wildcharm'	  'wcm'     like 'wildchar' but also works when mapped
990362e1a30SBram Moolenaar'wildignore'	  'wig'     files matching these patterns are not completed
99181af9250SBram Moolenaar'wildignorecase'  'wic'     ignore case when completing file names
992362e1a30SBram Moolenaar'wildmenu'	  'wmnu'    use menu for command line completion
993362e1a30SBram Moolenaar'wildmode'	  'wim'     mode for 'wildchar' command-line expansion
994d04b7507SBram Moolenaar'wildoptions'	  'wop'     specifies how command line completion is done
995362e1a30SBram Moolenaar'winaltkeys'	  'wak'     when the windows system handles ALT keys
9967dd64a3eSBram Moolenaar'wincolor'	  'wcr'	    window-local highlighting
997365bdf7aSBram Moolenaar'window'	  'wi'	    nr of lines to scroll for CTRL-F and CTRL-B
998362e1a30SBram Moolenaar'winheight'	  'wh'	    minimum number of lines for the current window
999362e1a30SBram Moolenaar'winfixheight'	  'wfh'     keep window height when opening/closing windows
10008d6ea5ebSBram Moolenaar'winfixwidth'	  'wfw'     keep window width when opening/closing windows
1001362e1a30SBram Moolenaar'winminheight'	  'wmh'     minimum number of lines for any window
1002362e1a30SBram Moolenaar'winminwidth'	  'wmw'     minimal number of columns for any window
1003c572da5fSBram Moolenaar'winptydll'		    name of the winpty dynamic library
1004362e1a30SBram Moolenaar'winwidth'	  'wiw'     minimal number of columns for current window
1005362e1a30SBram Moolenaar'wrap'			    long lines wrap and continue on the next line
1006362e1a30SBram Moolenaar'wrapmargin'	  'wm'	    chars from the right where wrapping starts
1007362e1a30SBram Moolenaar'wrapscan'	  'ws'	    searches wrap around the end of the file
1008362e1a30SBram Moolenaar'write'			    writing to a file is allowed
1009362e1a30SBram Moolenaar'writeany'	  'wa'	    write to file with no need for "!" override
1010362e1a30SBram Moolenaar'writebackup'	  'wb'	    make a backup before overwriting a file
1011362e1a30SBram Moolenaar'writedelay'	  'wd'	    delay this many msec for each char (for debug)
1012071d4279SBram Moolenaar------------------------------------------------------------------------------
1013071d4279SBram Moolenaar*Q_ur*		Undo/Redo commands
1014071d4279SBram Moolenaar
1015071d4279SBram Moolenaar|u|       N  u		undo last N changes
1016071d4279SBram Moolenaar|CTRL-R|  N  CTRL-R	redo last N undone changes
1017071d4279SBram Moolenaar|U|          U		restore last changed line
1018071d4279SBram Moolenaar------------------------------------------------------------------------------
1019071d4279SBram Moolenaar*Q_et*		External commands
1020071d4279SBram Moolenaar
1021071d4279SBram Moolenaar|:shell|	:sh[ell]	start a shell
1022071d4279SBram Moolenaar|:!|		:!{command}	execute {command} with a shell
1023071d4279SBram Moolenaar|K|		   K		lookup keyword under the cursor with
1024071d4279SBram Moolenaar				   'keywordprg' program (default: "man")
1025071d4279SBram Moolenaar------------------------------------------------------------------------------
1026071d4279SBram Moolenaar*Q_qf*		Quickfix commands
1027071d4279SBram Moolenaar
1028071d4279SBram Moolenaar|:cc|		:cc [nr]	display error [nr] (default is the same again)
1029071d4279SBram Moolenaar|:cnext|	:cn		display the next error
1030071d4279SBram Moolenaar|:cprevious|	:cp		display the previous error
1031071d4279SBram Moolenaar|:clist|	:cl		list all errors
1032071d4279SBram Moolenaar|:cfile|	:cf		read errors from the file 'errorfile'
10337b5f8325SBram Moolenaar|:cgetbuffer|	:cgetb		like :cbuffer but don't jump to the first error
103487e25fdfSBram Moolenaar|:cgetfile|	:cg		like :cfile but don't jump to the first error
10357b5f8325SBram Moolenaar|:cgetexpr|	:cgete		like :cexpr but don't jump to the first error
10364770d09aSBram Moolenaar|:caddfile|	:caddf		add errors from the error file to the current
10374770d09aSBram Moolenaar				   quickfix list
10384770d09aSBram Moolenaar|:caddexpr|	:cad		add errors from an expression to the current
103987e25fdfSBram Moolenaar				   quickfix list
104087e25fdfSBram Moolenaar|:cbuffer|	:cb		read errors from text in a buffer
104187e25fdfSBram Moolenaar|:cexpr|	:cex		read errors from an expression
1042071d4279SBram Moolenaar|:cquit|	:cq		quit without writing and return error code (to
1043071d4279SBram Moolenaar				   the compiler)
1044071d4279SBram Moolenaar|:make|		:make [args]	start make, read errors, and jump to first
1045071d4279SBram Moolenaar				   error
1046071d4279SBram Moolenaar|:grep|		:gr[ep] [args]	execute 'grepprg' to find matches and jump to
1047d04b7507SBram Moolenaar				   the first one
1048071d4279SBram Moolenaar------------------------------------------------------------------------------
1049071d4279SBram Moolenaar*Q_vc*		Various commands
1050071d4279SBram Moolenaar
1051d04b7507SBram Moolenaar|CTRL-L|	   CTRL-L	clear and redraw the screen
1052071d4279SBram Moolenaar|CTRL-G|	   CTRL-G	show current file name (with path) and cursor
1053071d4279SBram Moolenaar				   position
1054071d4279SBram Moolenaar|ga|		   ga		show ascii value of character under cursor in
1055071d4279SBram Moolenaar				   decimal, hex, and octal
1056269ec658SBram Moolenaar|g8|		   g8		for utf-8 encoding: show byte sequence for
1057d04b7507SBram Moolenaar				   character under cursor in hex
1058071d4279SBram Moolenaar|g_CTRL-G|	   g CTRL-G	show cursor column, line, and character
1059071d4279SBram Moolenaar				   position
1060071d4279SBram Moolenaar|CTRL-C|	   CTRL-C	during searches: Interrupt the search
10615666fcd0SBram Moolenaar|dos-CTRL-Break|   CTRL-Break	MS-Windows: during searches: Interrupt the
10625666fcd0SBram Moolenaar				   search
1063071d4279SBram Moolenaar|<Del>|		   <Del>	while entering a count: delete last character
1064071d4279SBram Moolenaar|:version|	:ve[rsion]	show version information
1065ade0d394SBram Moolenaar|:mode|		:mode N		set screen mode to N (obsolete)
1066071d4279SBram Moolenaar|:normal|	:norm[al][!] {commands}
1067d04b7507SBram Moolenaar				execute Normal mode commands
1068071d4279SBram Moolenaar|Q|		   Q		switch to "Ex" mode
1069071d4279SBram Moolenaar
1070071d4279SBram Moolenaar|:redir|	:redir >{file}		redirect messages to {file}
1071071d4279SBram Moolenaar|:silent|	:silent[!] {command}	execute {command} silently
1072071d4279SBram Moolenaar|:confirm|	:confirm {command}	quit, write, etc., asking about
1073d04b7507SBram Moolenaar					unsaved changes or read-only files
1074071d4279SBram Moolenaar|:browse|	:browse {command}	open/read/write file, using a
1075071d4279SBram Moolenaar					file selection dialog
1076071d4279SBram Moolenaar------------------------------------------------------------------------------
1077071d4279SBram Moolenaar*Q_ce*		Command-line editing
1078071d4279SBram Moolenaar
1079071d4279SBram Moolenaar|c_<Esc>|	<Esc>		   abandon command-line (if 'wildchar' is
1080071d4279SBram Moolenaar				      <Esc>, type it twice)
1081071d4279SBram Moolenaar
1082071d4279SBram Moolenaar|c_CTRL-V|	CTRL-V {char}	   insert {char} literally
1083071d4279SBram Moolenaar|c_CTRL-V|	CTRL-V {number}    enter decimal value of character (up to
1084071d4279SBram Moolenaar				      three digits)
1085071d4279SBram Moolenaar|c_CTRL-K|	CTRL-K {char1} {char2}
1086071d4279SBram Moolenaar				   enter digraph (See |Q_di|)
10875be4ceecSBram Moolenaar|c_CTRL-R|	CTRL-R {register}  insert the contents of a register
1088071d4279SBram Moolenaar
1089071d4279SBram Moolenaar|c_<Left>|	<Left>/<Right>	   cursor left/right
1090071d4279SBram Moolenaar|c_<S-Left>|	<S-Left>/<S-Right> cursor one word left/right
1091071d4279SBram Moolenaar|c_CTRL-B|	CTRL-B/CTRL-E	   cursor to beginning/end of command-line
1092071d4279SBram Moolenaar
1093071d4279SBram Moolenaar|c_<BS>|	<BS>		   delete the character in front of the cursor
1094071d4279SBram Moolenaar|c_<Del>|	<Del>		   delete the character under the cursor
1095071d4279SBram Moolenaar|c_CTRL-W|	CTRL-W		   delete the word in front of the cursor
1096071d4279SBram Moolenaar|c_CTRL-U|	CTRL-U		   remove all characters
1097071d4279SBram Moolenaar
1098071d4279SBram Moolenaar|c_<Up>|	<Up>/<Down>	   recall older/newer command-line that starts
1099071d4279SBram Moolenaar				      with current command
1100071d4279SBram Moolenaar|c_<S-Up>|	<S-Up>/<S-Down>	   recall older/newer command-line from history
1101bc2eada5SBram Moolenaar|c_CTRL-G|	CTRL-G		   next match when 'incsearch' is active
1102bc2eada5SBram Moolenaar|c_CTRL-T|	CTRL-T		   previous match when 'incsearch' is active
1103071d4279SBram Moolenaar|:history|	:his[tory]	   show older command-lines
1104071d4279SBram Moolenaar
1105071d4279SBram MoolenaarContext-sensitive completion on the command-line:
1106071d4279SBram Moolenaar
1107071d4279SBram Moolenaar|c_wildchar|	'wildchar'  (default: <Tab>)
1108071d4279SBram Moolenaar				do completion on the pattern in front of the
1109d04b7507SBram Moolenaar				   cursor; if there are multiple matches,
1110071d4279SBram Moolenaar				   beep and show the first one; further
1111d04b7507SBram Moolenaar				   'wildchar' will show the next ones
1112071d4279SBram Moolenaar|c_CTRL-D|	CTRL-D		list all names that match the pattern in
1113071d4279SBram Moolenaar				   front of the cursor
1114071d4279SBram Moolenaar|c_CTRL-A|	CTRL-A		insert all names that match pattern in front
1115071d4279SBram Moolenaar				   of cursor
1116071d4279SBram Moolenaar|c_CTRL-L|	CTRL-L		insert longest common part of names that
1117071d4279SBram Moolenaar				   match pattern
1118071d4279SBram Moolenaar|c_CTRL-N|	CTRL-N		after 'wildchar' with multiple matches: go
1119071d4279SBram Moolenaar				   to next match
1120071d4279SBram Moolenaar|c_CTRL-P|	CTRL-P		after 'wildchar' with multiple matches: go
1121071d4279SBram Moolenaar				   to previous match
1122071d4279SBram Moolenaar------------------------------------------------------------------------------
1123071d4279SBram Moolenaar*Q_ra*		Ex ranges
1124071d4279SBram Moolenaar
1125071d4279SBram Moolenaar|:range|	,		separates two line numbers
1126071d4279SBram Moolenaar|:range|	;		idem, set cursor to the first line number
1127071d4279SBram Moolenaar				before interpreting the second one
1128071d4279SBram Moolenaar
1129071d4279SBram Moolenaar|:range|	{number}	an absolute line number
1130071d4279SBram Moolenaar|:range|	.		the current line
1131071d4279SBram Moolenaar|:range|	$		the last line in the file
1132071d4279SBram Moolenaar|:range|	%		equal to 1,$ (the entire file)
1133071d4279SBram Moolenaar|:range|	*		equal to '<,'> (visual area)
1134071d4279SBram Moolenaar|:range|	't		position of mark t
1135071d4279SBram Moolenaar|:range|	/{pattern}[/]	the next line where {pattern} matches
1136071d4279SBram Moolenaar|:range|	?{pattern}[?]	the previous line where {pattern} matches
1137071d4279SBram Moolenaar
1138071d4279SBram Moolenaar|:range|	+[num]		add [num] to the preceding line number
1139071d4279SBram Moolenaar				   (default: 1)
1140071d4279SBram Moolenaar|:range|	-[num]		subtract [num] from the preceding line
1141071d4279SBram Moolenaar				   number (default: 1)
1142071d4279SBram Moolenaar------------------------------------------------------------------------------
1143071d4279SBram Moolenaar*Q_ex*		Special Ex characters
1144071d4279SBram Moolenaar
1145071d4279SBram Moolenaar|:bar|      |		separates two commands (not for ":global" and ":!")
1146071d4279SBram Moolenaar|:quote|    "		begins comment
1147071d4279SBram Moolenaar
1148071d4279SBram Moolenaar|:_%|       %		current file name (only where a file name is expected)
1149071d4279SBram Moolenaar|:_#|       #[num]	alternate file name [num] (only where a file name is
1150071d4279SBram Moolenaar			   expected)
11519028b10dSBram Moolenaar	Note: The next seven are typed literally; these are not special keys!
115224ea3babSBram Moolenaar|:<abuf>|   <abuf>	buffer number, for use in an autocommand (only where a
1153e667c953SBram Moolenaar			   file name is expected)
115424ea3babSBram Moolenaar|:<afile>|  <afile>	file name, for use in an autocommand (only where a
1155e667c953SBram Moolenaar			   file name is expected)
115624ea3babSBram Moolenaar|:<amatch>| <amatch>	what matched with the pattern, for use in an
1157e667c953SBram Moolenaar			   autocommand (only where a file name is expected)
1158071d4279SBram Moolenaar|:<cword>|  <cword>	word under the cursor (only where a file name is
1159071d4279SBram Moolenaar			   expected)
1160071d4279SBram Moolenaar|:<cWORD>|  <cWORD>	WORD under the cursor (only where a file name is
1161071d4279SBram Moolenaar			   expected) (see |WORD|)
1162071d4279SBram Moolenaar|:<cfile>|  <cfile>	file name under the cursor (only where a file name is
1163071d4279SBram Moolenaar			   expected)
1164071d4279SBram Moolenaar|:<sfile>|  <sfile>	file name of a ":source"d file, within that file (only
1165071d4279SBram Moolenaar			   where a file name is expected)
1166071d4279SBram Moolenaar
1167071d4279SBram Moolenaar		After "%", "#", "<cfile>", "<sfile>" or "<afile>"
1168071d4279SBram Moolenaar		|::p|	    :p		full path
1169071d4279SBram Moolenaar		|::h|	    :h		head (file name removed)
1170071d4279SBram Moolenaar		|::t|	    :t		tail (file name only)
1171071d4279SBram Moolenaar		|::r|	    :r		root (extension removed)
1172071d4279SBram Moolenaar		|::e|	    :e		extension
1173071d4279SBram Moolenaar		|::s|	    :s/{pat}/{repl}/	substitute {pat} with {repl}
1174071d4279SBram Moolenaar------------------------------------------------------------------------------
11759028b10dSBram Moolenaar*Q_st*		Starting Vim
11762df6dcc5SBram Moolenaar
11772df6dcc5SBram Moolenaar|-vim|	   vim [options]		start editing with an empty buffer
11782df6dcc5SBram Moolenaar|-file|	   vim [options] {file} ..	start editing one or more files
11792df6dcc5SBram Moolenaar|--|	   vim [options] -		read file from stdin
11802df6dcc5SBram Moolenaar|-tag|	   vim [options] -t {tag}	edit the file associated with {tag}
11812df6dcc5SBram Moolenaar|-qf|	   vim [options] -q [fname]	start editing in QuickFix mode,
11822df6dcc5SBram Moolenaar					   display the first error
11832df6dcc5SBram Moolenaar
11842df6dcc5SBram Moolenaar	Most useful Vim arguments (for full list see |startup-options|)
11852df6dcc5SBram Moolenaar
11862df6dcc5SBram Moolenaar|-gui|	-g		    start GUI (also allows other options)
11872df6dcc5SBram Moolenaar
11882df6dcc5SBram Moolenaar|-+|	+[num]		    put the cursor at line [num] (default: last line)
11892df6dcc5SBram Moolenaar|-+c|	+{command}	    execute {command} after loading the file
11902df6dcc5SBram Moolenaar|-+/|	+/{pat} {file} ..   put the cursor at the first occurrence of {pat}
11912df6dcc5SBram Moolenaar|-v|	-v		    Vi mode, start ex in Normal mode
11922df6dcc5SBram Moolenaar|-e|	-e		    Ex mode, start vim in Ex mode
11932df6dcc5SBram Moolenaar|-R|	-R		    Read-only mode, implies -n
11942df6dcc5SBram Moolenaar|-m|	-m		    modifications not allowed (resets 'write' option)
11952df6dcc5SBram Moolenaar|-d|	-d		    diff mode |diff|
11962df6dcc5SBram Moolenaar|-b|	-b		    binary mode
11972df6dcc5SBram Moolenaar|-l|	-l		    lisp mode
11982df6dcc5SBram Moolenaar|-A|	-A		    Arabic mode ('arabic' is set)
11992df6dcc5SBram Moolenaar|-F|	-F		    Farsi mode ('fkmap' and 'rightleft' are set)
12002df6dcc5SBram Moolenaar|-H|	-H		    Hebrew mode ('hkmap' and 'rightleft' are set)
12012df6dcc5SBram Moolenaar|-V|	-V		    Verbose, give informative messages
12022df6dcc5SBram Moolenaar|-C|	-C		    Compatible, set the 'compatible' option
12032df6dcc5SBram Moolenaar|-N|	-N		    Nocompatible, reset the 'compatible' option
12042df6dcc5SBram Moolenaar|-r|	-r		    give list of swap files
12052df6dcc5SBram Moolenaar|-r|	-r {file} ..	    recover aborted edit session
12062df6dcc5SBram Moolenaar|-n|	-n		    do not create a swap file
12072df6dcc5SBram Moolenaar|-o|	-o [num]	    open [num] windows (default: one for each file)
12082df6dcc5SBram Moolenaar|-f|	-f		    GUI: foreground process, don't fork
12099028b10dSBram Moolenaar			    Amiga: do not restart Vim to open a window (for
12102df6dcc5SBram Moolenaar				e.g., mail)
12112df6dcc5SBram Moolenaar|-s|	-s {scriptin}	    first read commands from the file {scriptin}
12122df6dcc5SBram Moolenaar|-w|	-w {scriptout}	    write typed chars to file {scriptout} (append)
12132df6dcc5SBram Moolenaar|-W|	-W {scriptout}	    write typed chars to file {scriptout} (overwrite)
12142df6dcc5SBram Moolenaar|-T|	-T {terminal}	    set terminal name
12152df6dcc5SBram Moolenaar|-d|	-d {device}	    Amiga: open {device} to be used as a console
12162df6dcc5SBram Moolenaar|-u|	-u {vimrc}	    read inits from {vimrc} instead of other inits
12172df6dcc5SBram Moolenaar|-U|	-U {gvimrc}	    idem, for when starting the GUI
12182df6dcc5SBram Moolenaar|-i|	-i {viminfo}	    read info from {viminfo} instead of other files
12192df6dcc5SBram Moolenaar|---|	--		    end of options, other arguments are file names
12202df6dcc5SBram Moolenaar|--help|    --help	    show list of arguments and exit
12212df6dcc5SBram Moolenaar|--version| --version	    show version info and exit
1222d04b7507SBram Moolenaar|--|	-		    read file from stdin
12232df6dcc5SBram Moolenaar------------------------------------------------------------------------------
1224071d4279SBram Moolenaar*Q_ed*		Editing a file
1225071d4279SBram Moolenaar
12269028b10dSBram Moolenaar	   Without !: Fail if changes have been made to the current buffer.
1227071d4279SBram Moolenaar	      With !: Discard any changes to the current buffer.
1228d04b7507SBram Moolenaar|:edit_f|  :e[dit][!] {file}	edit {file}
1229d04b7507SBram Moolenaar|:edit|    :e[dit][!]		reload the current file
1230d04b7507SBram Moolenaar|:enew|    :ene[w][!]		edit a new, unnamed buffer
1231d04b7507SBram Moolenaar|:find|    :fin[d][!] {file}	find {file} in 'path' and edit it
1232071d4279SBram Moolenaar
1233d04b7507SBram Moolenaar|CTRL-^|   N  CTRL-^		edit alternate file N (equivalent to ":e #N")
1234d04b7507SBram Moolenaar|gf|          gf  or ]f		edit the file whose name is under the cursor
1235d04b7507SBram Moolenaar|:pwd|     :pwd			print the current directory name
1236d04b7507SBram Moolenaar|:cd|      :cd [path]		change the current directory to [path]
1237d04b7507SBram Moolenaar|:cd-|     :cd -		back to previous current directory
1238d04b7507SBram Moolenaar|:file|    :f[ile]		print the current file name and the cursor
1239d04b7507SBram Moolenaar				   position
1240d04b7507SBram Moolenaar|:file|    :f[ile] {name}	set the current file name to {name}
1241d04b7507SBram Moolenaar|:files|   :files		show alternate file names
1242071d4279SBram Moolenaar------------------------------------------------------------------------------
1243071d4279SBram Moolenaar*Q_fl*		Using the argument list			|argument-list|
1244071d4279SBram Moolenaar
1245d04b7507SBram Moolenaar|:args|	   :ar[gs]		print the argument list, with the current file
1246d04b7507SBram Moolenaar				   in "[]"
1247d04b7507SBram Moolenaar|:all|	   :all  or :sall	open a window for every file in the arg list
1248d04b7507SBram Moolenaar|:wn|	   :wn[ext][!]		write file and edit next file
1249d04b7507SBram Moolenaar|:wn|	   :wn[ext][!] {file}	write to {file} and edit next file, unless
1250d04b7507SBram Moolenaar				   {file} exists; With !, overwrite existing
1251d04b7507SBram Moolenaar				   file
1252d04b7507SBram Moolenaar|:wN|	   :wN[ext][!] [file]	write file and edit previous file
1253071d4279SBram Moolenaar
1254071d4279SBram Moolenaar	     in current window    in new window	~
12559028b10dSBram Moolenaar|:argument|  :argu[ment] N	  :sar[gument] N	edit file N
12569028b10dSBram Moolenaar|:next|      :n[ext]		  :sn[ext]		edit next file
1257071d4279SBram Moolenaar|:next_f|    :n[ext] {arglist}	  :sn[ext] {arglist}	define new arg list
1258071d4279SBram Moolenaar							   and edit first file
12599028b10dSBram Moolenaar|:Next|      :N[ext]		  :sN[ext]		edit previous file
12609028b10dSBram Moolenaar|:first|     :fir[st]		  :sfir[st]		edit first file
12619028b10dSBram Moolenaar|:last|      :la[st]		  :sla[st]		edit last file
1262071d4279SBram Moolenaar------------------------------------------------------------------------------
1263071d4279SBram Moolenaar*Q_wq*		Writing and quitting
1264071d4279SBram Moolenaar
1265d04b7507SBram Moolenaar|:w|	  :[range]w[rite][!]		write to the current file
1266d04b7507SBram Moolenaar|:w_f|	  :[range]w[rite] {file}	write to {file}, unless it already
1267d04b7507SBram Moolenaar					   exists
1268d04b7507SBram Moolenaar|:w_f|	  :[range]w[rite]! {file}	write to {file}.  Overwrite an existing
1269d04b7507SBram Moolenaar					   file
1270d04b7507SBram Moolenaar|:w_a|	  :[range]w[rite][!] >>		append to the current file
1271d04b7507SBram Moolenaar|:w_a|	  :[range]w[rite][!] >> {file}	append to {file}
1272d04b7507SBram Moolenaar|:w_c|	  :[range]w[rite] !{cmd}	execute {cmd} with [range] lines as
1273d04b7507SBram Moolenaar					   standard input
1274071d4279SBram Moolenaar|:up|	  :[range]up[date][!]		write to current file if modified
1275071d4279SBram Moolenaar|:wall|	  :wa[ll][!]			write all changed buffers
1276071d4279SBram Moolenaar
1277d04b7507SBram Moolenaar|:q|	  :q[uit]		quit current buffer, unless changes have been
1278d04b7507SBram Moolenaar				   made; Exit Vim when there are no other
1279071d4279SBram Moolenaar				   non-help buffers
1280d04b7507SBram Moolenaar|:q|	  :q[uit]!		quit current buffer always, discard any
1281071d4279SBram Moolenaar				   changes.  Exit Vim when there are no other
1282071d4279SBram Moolenaar				   non-help buffers
1283d04b7507SBram Moolenaar|:qa|	  :qa[ll]		exit Vim, unless changes have been made
1284d04b7507SBram Moolenaar|:qa|	  :qa[ll]!		exit Vim always, discard any changes
1285d04b7507SBram Moolenaar|:cq|	  :cq			quit without writing and return error code
1286071d4279SBram Moolenaar
1287d04b7507SBram Moolenaar|:wq|	  :wq[!]		write the current file and exit
1288d04b7507SBram Moolenaar|:wq|	  :wq[!] {file}		write to {file} and exit
1289d04b7507SBram Moolenaar|:xit|	  :x[it][!] [file]	like ":wq" but write only when changes have
1290071d4279SBram Moolenaar				   been made
1291d04b7507SBram Moolenaar|ZZ|	     ZZ			same as ":x"
1292d04b7507SBram Moolenaar|ZQ|	     ZQ			same as ":q!"
1293071d4279SBram Moolenaar|:xall|	  :xa[ll][!]  or :wqall[!]
1294d04b7507SBram Moolenaar				write all changed buffers and exit
1295071d4279SBram Moolenaar
12969028b10dSBram Moolenaar|:stop|	  :st[op][!]		suspend Vim or start new shell; if 'aw' option
1297d04b7507SBram Moolenaar				   is set and [!] not given write the buffer
1298d04b7507SBram Moolenaar|CTRL-Z|     CTRL-Z		same as ":stop"
1299071d4279SBram Moolenaar------------------------------------------------------------------------------
1300071d4279SBram Moolenaar*Q_ac*		Automatic Commands
1301071d4279SBram Moolenaar
13029028b10dSBram Moolenaar|viminfo-file|	read registers, marks, history at startup, save when exiting.
1303071d4279SBram Moolenaar
13049028b10dSBram Moolenaar|:rviminfo|	:rv[iminfo] [file]	read info from viminfo file [file]
1305071d4279SBram Moolenaar|:rviminfo|	:rv[iminfo]! [file]	idem, overwrite existing info
13069028b10dSBram Moolenaar|:wviminfo|	:wv[iminfo] [file]	add info to viminfo file [file]
13079028b10dSBram Moolenaar|:wviminfo|	:wv[iminfo]! [file]	write info to viminfo file [file]
1308071d4279SBram Moolenaar
1309071d4279SBram Moolenaar|modeline|	Automatic option setting when editing a file
1310071d4279SBram Moolenaar
1311071d4279SBram Moolenaar|modeline|	vim:{set-arg}: ..	In the first and last lines of the
1312071d4279SBram Moolenaar					file (see 'ml' option), {set-arg} is
1313071d4279SBram Moolenaar					given as an argument to ":set"
1314071d4279SBram Moolenaar
1315071d4279SBram Moolenaar|autocommand|	Automatic execution of commands on certain events.
1316071d4279SBram Moolenaar
13179028b10dSBram Moolenaar|:autocmd|	:au			  list all autocommands
13189028b10dSBram Moolenaar|:autocmd|	:au {event}		  list all autocommands for {event}
13199028b10dSBram Moolenaar|:autocmd|	:au {event} {pat}	  list all autocommands for {event}
1320071d4279SBram Moolenaar					  with {pat}
13219028b10dSBram Moolenaar|:autocmd|	:au {event} {pat} {cmd}	  enter new autocommands for {event}
1322071d4279SBram Moolenaar					  with {pat}
13239028b10dSBram Moolenaar|:autocmd|	:au!			  remove all autocommands
13249028b10dSBram Moolenaar|:autocmd|	:au! {event}		  remove all autocommands for {event}
13259028b10dSBram Moolenaar|:autocmd|	:au! * {pat}		  remove all autocommands for {pat}
13269028b10dSBram Moolenaar|:autocmd|	:au! {event} {pat}	  remove all autocommands for {event}
13279028b10dSBram Moolenaar					  with {pat}
13289028b10dSBram Moolenaar|:autocmd|	:au! {event} {pat} {cmd}  remove all autocommands for {event}
1329071d4279SBram Moolenaar					  with {pat} and enter new one
1330071d4279SBram Moolenaar------------------------------------------------------------------------------
1331071d4279SBram Moolenaar*Q_wi*		Multi-window commands
1332071d4279SBram Moolenaar
1333d04b7507SBram Moolenaar|CTRL-W_s|	CTRL-W s  or  :split	split window into two parts
1334d04b7507SBram Moolenaar|:split_f|	:split {file}		split window and edit {file} in one of
1335071d4279SBram Moolenaar					   them
1336d04b7507SBram Moolenaar|:vsplit|	:vsplit {file}		same, but split vertically
1337d04b7507SBram Moolenaar|:vertical|	:vertical {cmd}		make {cmd} split vertically
1338071d4279SBram Moolenaar
1339d04b7507SBram Moolenaar|:sfind|	:sf[ind] {file}		split window, find {file} in 'path'
1340d04b7507SBram Moolenaar					   and edit it
134174675a66SBram Moolenaar|:terminal|	:terminal {cmd}		open a terminal window
1342d04b7507SBram Moolenaar|CTRL-W_]|	CTRL-W ]		split window and jump to tag under
1343071d4279SBram Moolenaar					   cursor
1344d04b7507SBram Moolenaar|CTRL-W_f|	CTRL-W f		split window and edit file name under
1345071d4279SBram Moolenaar					   the cursor
1346d04b7507SBram Moolenaar|CTRL-W_^|	CTRL-W ^		split window and edit alternate file
1347d04b7507SBram Moolenaar|CTRL-W_n|	CTRL-W n  or  :new	create new empty window
1348d04b7507SBram Moolenaar|CTRL-W_q|	CTRL-W q  or  :q[uit]	quit editing and close window
1349d04b7507SBram Moolenaar|CTRL-W_c|	CTRL-W c  or  :cl[ose]	make buffer hidden and close window
1350d04b7507SBram Moolenaar|CTRL-W_o|	CTRL-W o  or  :on[ly]	make current window only one on the
1351071d4279SBram Moolenaar					   screen
1352071d4279SBram Moolenaar
1353d04b7507SBram Moolenaar|CTRL-W_j|	CTRL-W j		move cursor to window below
1354d04b7507SBram Moolenaar|CTRL-W_k|	CTRL-W k		move cursor to window above
1355d04b7507SBram Moolenaar|CTRL-W_CTRL-W|	CTRL-W CTRL-W		move cursor to window below (wrap)
1356d04b7507SBram Moolenaar|CTRL-W_W|	CTRL-W W		move cursor to window above (wrap)
1357d04b7507SBram Moolenaar|CTRL-W_t|	CTRL-W t		move cursor to top window
1358d04b7507SBram Moolenaar|CTRL-W_b|	CTRL-W b		move cursor to bottom window
1359d04b7507SBram Moolenaar|CTRL-W_p|	CTRL-W p		move cursor to previous active window
1360071d4279SBram Moolenaar
1361d04b7507SBram Moolenaar|CTRL-W_r|	CTRL-W r		rotate windows downwards
1362d04b7507SBram Moolenaar|CTRL-W_R|	CTRL-W R		rotate windows upwards
1363d04b7507SBram Moolenaar|CTRL-W_x|	CTRL-W x		exchange current window with next one
1364071d4279SBram Moolenaar
136532efaf61SBram Moolenaar|CTRL-W_=|	CTRL-W =		make all windows equal height & width
1366d04b7507SBram Moolenaar|CTRL-W_-|	CTRL-W -		decrease current window height
1367d04b7507SBram Moolenaar|CTRL-W_+|	CTRL-W +		increase current window height
1368d04b7507SBram Moolenaar|CTRL-W__|	CTRL-W _		set current window height (default:
1369071d4279SBram Moolenaar					   very high)
137032efaf61SBram Moolenaar
137132efaf61SBram Moolenaar|CTRL-W_<|	CTRL-W <		decrease current window width
137232efaf61SBram Moolenaar|CTRL-W_>|	CTRL-W >		increase current window width
137332efaf61SBram Moolenaar|CTRL-W_bar|	CTRL-W |		set current window width (default:
137432efaf61SBram Moolenaar					   widest possible)
1375071d4279SBram Moolenaar------------------------------------------------------------------------------
1376071d4279SBram Moolenaar*Q_bu*		Buffer list commands
1377071d4279SBram Moolenaar
1378071d4279SBram Moolenaar|:buffers|	:buffers  or  :files	list all known buffer and file names
1379071d4279SBram Moolenaar
1380071d4279SBram Moolenaar|:ball|		:ball	  or  :sball	edit all args/buffers
1381071d4279SBram Moolenaar|:unhide|	:unhide   or  :sunhide	edit all loaded buffers
1382071d4279SBram Moolenaar
1383071d4279SBram Moolenaar|:badd|		:badd {fname}		add file name {fname} to the list
1384071d4279SBram Moolenaar|:bunload|	:bunload[!] [N]		unload buffer [N] from memory
1385071d4279SBram Moolenaar|:bdelete|	:bdelete[!] [N]		unload buffer [N] and delete it from
1386071d4279SBram Moolenaar					   the buffer list
1387071d4279SBram Moolenaar
1388071d4279SBram Moolenaar		in current window  in new window       ~
1389071d4279SBram Moolenaar|:buffer|	:[N]buffer [N]     :[N]sbuffer [N]     to arg/buf N
1390071d4279SBram Moolenaar|:bnext|	:[N]bnext [N]      :[N]sbnext [N]      to Nth next arg/buf
1391071d4279SBram Moolenaar|:bNext|	:[N]bNext [N]      :[N]sbNext [N]      to Nth previous arg/buf
1392071d4279SBram Moolenaar|:bprevious|	:[N]bprevious [N]  :[N]sbprevious [N]  to Nth previous arg/buf
1393071d4279SBram Moolenaar|:bfirst|	:bfirst	           :sbfirst            to first arg/buf
1394071d4279SBram Moolenaar|:blast|	:blast	           :sblast             to last arg/buf
1395071d4279SBram Moolenaar|:bmodified|	:[N]bmod [N]       :[N]sbmod [N]       to Nth modified buf
1396071d4279SBram Moolenaar------------------------------------------------------------------------------
1397071d4279SBram Moolenaar*Q_sy*		Syntax Highlighting
1398071d4279SBram Moolenaar
1399071d4279SBram Moolenaar|:syn-on|	:syntax on		start using syntax highlighting
1400071d4279SBram Moolenaar|:syn-off|	:syntax off		stop using syntax highlighting
1401071d4279SBram Moolenaar
1402071d4279SBram Moolenaar|:syn-keyword|	:syntax keyword {group-name} {keyword} ..
1403071d4279SBram Moolenaar					add a syntax keyword item
1404071d4279SBram Moolenaar|:syn-match|	:syntax match {group-name} {pattern} ...
1405071d4279SBram Moolenaar					add syntax match item
1406071d4279SBram Moolenaar|:syn-region|	:syntax region {group-name} {pattern} ...
1407071d4279SBram Moolenaar					add syntax region item
1408071d4279SBram Moolenaar|:syn-sync|	:syntax sync [ccomment | lines {N} | ...]
1409071d4279SBram Moolenaar					tell syntax how to sync
1410071d4279SBram Moolenaar|:syntax|	:syntax [list]		list current syntax items
1411071d4279SBram Moolenaar|:syn-clear|	:syntax clear		clear all syntax info
1412071d4279SBram Moolenaar
1413071d4279SBram Moolenaar|:highlight|	:highlight clear	clear all highlight info
1414071d4279SBram Moolenaar|:highlight|	:highlight {group-name} {key}={arg} ..
1415071d4279SBram Moolenaar					set highlighting for {group-name}
1416071d4279SBram Moolenaar
1417071d4279SBram Moolenaar|:filetype|	:filetype on		switch on file type detection, without
1418071d4279SBram Moolenaar					syntax highlighting
1419071d4279SBram Moolenaar|:filetype|	:filetype plugin indent on
1420071d4279SBram Moolenaar					switch on file type detection, with
1421071d4279SBram Moolenaar					automatic indenting and settings
1422071d4279SBram Moolenaar------------------------------------------------------------------------------
1423071d4279SBram Moolenaar*Q_gu*		GUI commands
1424071d4279SBram Moolenaar
1425071d4279SBram Moolenaar|:gui|		:gui			UNIX: start the GUI
1426071d4279SBram Moolenaar|:gui|		:gui {fname} ..		idem, and edit {fname} ..
1427071d4279SBram Moolenaar
1428071d4279SBram Moolenaar|:menu|		:menu			list all menus
1429071d4279SBram Moolenaar|:menu|		:menu {mpath}		list menus starting with {mpath}
1430d04b7507SBram Moolenaar|:menu|		:menu {mpath} {rhs}	add menu {mpath}, giving {rhs}
1431071d4279SBram Moolenaar|:menu|		:menu {pri} {mpath} {rhs}
1432071d4279SBram Moolenaar					idem, with priorities {pri}
1433071d4279SBram Moolenaar|:menu|		:menu ToolBar.{name} {rhs}
1434d04b7507SBram Moolenaar					add toolbar item, giving {rhs}
1435071d4279SBram Moolenaar|:tmenu|	:tmenu {mpath} {text}	add tooltip to menu {mpath}
1436071d4279SBram Moolenaar|:unmenu|	:unmenu {mpath}		remove menu {mpath}
1437071d4279SBram Moolenaar------------------------------------------------------------------------------
1438071d4279SBram Moolenaar*Q_fo*		Folding
1439071d4279SBram Moolenaar
1440071d4279SBram Moolenaar|'foldmethod'|	set foldmethod=manual	manual folding
1441071d4279SBram Moolenaar		set foldmethod=indent	folding by indent
1442071d4279SBram Moolenaar		set foldmethod=expr	folding by 'foldexpr'
1443071d4279SBram Moolenaar		set foldmethod=syntax	folding by syntax regions
144424ea3babSBram Moolenaar		set foldmethod=marker	folding by 'foldmarker'
1445071d4279SBram Moolenaar
1446071d4279SBram Moolenaar|zf|		zf{motion}		operator: Define a fold manually
1447071d4279SBram Moolenaar|:fold|		:{range}fold		define a fold for {range} lines
1448071d4279SBram Moolenaar|zd|		zd			delete one fold under the cursor
1449071d4279SBram Moolenaar|zD|		zD			delete all folds under the cursor
1450071d4279SBram Moolenaar
1451071d4279SBram Moolenaar|zo|		zo			open one fold under the cursor
1452071d4279SBram Moolenaar|zO|		zO			open all folds under the cursor
1453071d4279SBram Moolenaar|zc|		zc			close one fold under the cursor
1454071d4279SBram Moolenaar|zC|		zC			close all folds under the cursor
1455071d4279SBram Moolenaar
1456071d4279SBram Moolenaar|zm|		zm			fold more: decrease 'foldlevel'
1457071d4279SBram Moolenaar|zM|		zM			close all folds: make 'foldlevel' zero
1458071d4279SBram Moolenaar|zr|		zr			reduce folding: increase 'foldlevel'
1459071d4279SBram Moolenaar|zR|		zR			open all folds: make 'foldlevel' max.
1460071d4279SBram Moolenaar
1461071d4279SBram Moolenaar|zn|		zn			fold none: reset 'foldenable'
1462071d4279SBram Moolenaar|zN|		zN			fold normal set 'foldenable'
1463071d4279SBram Moolenaar|zi|		zi			invert 'foldenable'
1464071d4279SBram Moolenaar
146591f84f6eSBram Moolenaar vim:tw=78:ts=8:noet:ft=help:norl:
1466