vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

quickref.txt (74629B)


      1 *quickref.txt*	For Vim version 9.2.  Last change: 2026 May 17
      2 
      3 
      4 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
      5 
      6 
      7 			    Quick reference guide
      8 
      9 							 *quickref* *Contents*
     10  tag	  subject			 tag	  subject	~
     11 |Q_ct|	list of help files		|Q_re|	Repeating commands
     12 |Q_lr|	motion: Left-right		|Q_km|	Key mapping
     13 |Q_ud|	motion: Up-down			|Q_ab|	Abbreviations
     14 |Q_tm|	motion: Text object		|Q_op|	Options
     15 |Q_pa|	motion: Pattern searches	|Q_ur|	Undo/Redo commands
     16 |Q_ma|	motion: Marks			|Q_et|	External commands
     17 |Q_vm|	motion: Various			|Q_qf|	Quickfix commands
     18 |Q_ta|	motion: Using tags		|Q_vc|	Various commands
     19 |Q_sc|	Scrolling			|Q_ce|	Ex: Command-line editing
     20 |Q_in|	insert: Inserting text		|Q_ra|	Ex: Ranges
     21 |Q_ai|	insert: Keys			|Q_ex|	Ex: Special characters
     22 |Q_ss|	insert: Special keys		|Q_st|	Starting Vim
     23 |Q_di|	insert: Digraphs		|Q_ed|	Editing a file
     24 |Q_si|	insert: Special inserts		|Q_fl|	Using the argument list
     25 |Q_de|	change: Deleting text		|Q_wq|	Writing and quitting
     26 |Q_cm|	change: Copying and moving	|Q_ac|	Automatic commands
     27 |Q_ch|	change: Changing text		|Q_wi|	Multi-window commands
     28 |Q_co|	change: Complex			|Q_bu|	Buffer list commands
     29 |Q_vi|	Visual mode			|Q_sy|	Syntax highlighting
     30 |Q_to|	Text objects			|Q_gu|	GUI commands
     31 					|Q_fo|	Folding
     32 
     33 ------------------------------------------------------------------------------
     34 N is used to indicate an optional count that can be given before the command.
     35 ------------------------------------------------------------------------------
     36 *Q_lr*		Left-right motions
     37 
     38 |h|	N  h		left (also: CTRL-H, <BS>, or <Left> key)
     39 |l|	N  l		right (also: <Space> or <Right> key)
     40 |0|	   0		to first character in the line (also: <Home> key)
     41 |^|	   ^		to first non-blank character in the line
     42 |$|	N  $		to the last character in the line (N-1 lines lower)
     43 			   (also: <End> key)
     44 |g0|	   g0		to first character in screen line (differs from "0"
     45 			   when lines wrap)
     46 |g^|	   g^		to first non-blank character in screen line (differs
     47 			   from "^" when lines wrap)
     48 |g$|	N  g$		to last character in screen line (differs from "$"
     49 			   when lines wrap)
     50 |gm|	   gm		to middle of the screen line
     51 |gM|	   gM		to middle of the line
     52 |bar|	N  |		to column N (default: 1)
     53 |f|	N  f{char}	to the Nth occurrence of {char} to the right
     54 |F|	N  F{char}	to the Nth occurrence of {char} to the left
     55 |t|	N  t{char}	till before the Nth occurrence of {char} to the right
     56 |T|	N  T{char}	till before the Nth occurrence of {char} to the left
     57 |;|	N  ;		repeat the last "f", "F", "t", or "T" N times
     58 |,|	N  ,		repeat the last "f", "F", "t", or "T" N times in
     59 			   opposite direction
     60 ------------------------------------------------------------------------------
     61 *Q_ud*		Up-down motions
     62 
     63 |k|	N  k		up N lines (also: CTRL-P and <Up>)
     64 |j|	N  j		down N lines (also: CTRL-J, CTRL-N, <NL>, and <Down>)
     65 |-|	N  -		up N lines, on the first non-blank character
     66 |+|	N  +		down N lines, on the first non-blank character (also:
     67 			   CTRL-M and <CR>)
     68 |_|	N  _		down N-1 lines, on the first non-blank character
     69 |G|	N  G		goto line N (default: last line), on the first
     70 			   non-blank character
     71 |gg|	N  gg		goto line N (default: first line), on the first
     72 			   non-blank character
     73 |N%|	N  %		goto line N percentage down in the file; N must be
     74 			   given, otherwise it is the |%| command
     75 |gk|	N  gk		up N screen lines (differs from "k" when line wraps)
     76 |gj|	N  gj		down N screen lines (differs from "j" when line wraps)
     77 ------------------------------------------------------------------------------
     78 *Q_tm*		Text object motions
     79 
     80 |w|	N  w		N words forward
     81 |W|	N  W		N blank-separated |WORD|s forward
     82 |e|	N  e		forward to the end of the Nth word
     83 |E|	N  E		forward to the end of the Nth blank-separated |WORD|
     84 |b|	N  b		N words backward
     85 |B|	N  B		N blank-separated |WORD|s backward
     86 |ge|	N  ge		backward to the end of the Nth word
     87 |gE|	N  gE		backward to the end of the Nth blank-separated |WORD|
     88 
     89 |)|	N  )		N sentences forward
     90 |(|	N  (		N sentences backward
     91 |}|	N  }		N paragraphs forward
     92 |{|	N  {		N paragraphs backward
     93 |]]|	N  ]]		N sections forward, at start of section
     94 |[[|	N  [[		N sections backward, at start of section
     95 |][|	N  ][		N sections forward, at end of section
     96 |[]|	N  []		N sections backward, at end of section
     97 |[(|	N  [(		N times back to unclosed '('
     98 |[{|	N  [{		N times back to unclosed '{'
     99 |[m|	N  [m		N times back to start of method (for Java)
    100 |[M|	N  [M		N times back to end of method (for Java)
    101 |])|	N  ])		N times forward to unclosed ')'
    102 |]}|	N  ]}		N times forward to unclosed '}'
    103 |]m|	N  ]m		N times forward to start of method (for Java)
    104 |]M|	N  ]M		N times forward to end of method (for Java)
    105 |[#|	N  [#		N times back to unclosed "#if" or "#else"
    106 |]#|	N  ]#		N times forward to unclosed "#else" or "#endif"
    107 |[star|	N  [*		N times back to start of comment "/*"
    108 |]star|	N  ]*		N times forward to end of comment "*/"
    109 ------------------------------------------------------------------------------
    110 *Q_pa*		Pattern searches
    111 
    112 |/|	N  /{pattern}[/[offset]]<CR>
    113 			search forward for the Nth occurrence of {pattern}
    114 |?|	N  ?{pattern}[?[offset]]<CR>
    115 			search backward for the Nth occurrence of {pattern}
    116 |/<CR>|	N  /<CR>	repeat last search, in the forward direction
    117 |?<CR>|	N  ?<CR>	repeat last search, in the backward direction
    118 |n|	N  n		repeat last search
    119 |N|	N  N		repeat last search, in opposite direction
    120 |star|	N  *		search forward for the identifier under the cursor
    121 |#|	N  #		search backward for the identifier under the cursor
    122 |gstar|	N  g*		like "*", but also find partial matches
    123 |g#|	N  g#		like "#", but also find partial matches
    124 |gd|	   gd		goto local declaration of identifier under the cursor
    125 |gD|	   gD		goto global declaration of identifier under the cursor
    126 
    127 |pattern|		Special characters in search patterns
    128 
    129 			meaning		      magic   nomagic	~
    130 		matches any single character	.	\.
    131 		       matches start of line	^	^
    132 			       matches <EOL>	$	$
    133 		       matches start of word	\<	\<
    134 			 matches end of word	\>	\>
    135 	matches a single char from the range	[a-z]	\[a-z]
    136       matches a single char not in the range	[^a-z]	\[^a-z]
    137 		  matches an identifier char	\i	\i
    138 		   idem but excluding digits	\I	\I
    139 		 matches a keyword character	\k	\k
    140 		   idem but excluding digits	\K	\K
    141 	       matches a file name character	\f	\f
    142 		   idem but excluding digits	\F	\F
    143 	       matches a printable character	\p	\p
    144 		   idem but excluding digits	\P	\P
    145 	     matches a white space character	\s	\s
    146 	 matches a non-white space character	\S	\S
    147 
    148 			       matches <Esc>	\e	\e
    149 			       matches <Tab>	\t	\t
    150 				matches <CR>	\r	\r
    151 				matches <BS>	\b	\b
    152 
    153      matches 0 or more of the preceding atom	*	\*
    154      matches 1 or more of the preceding atom	\+	\+
    155 	matches 0 or 1 of the preceding atom	\=	\=
    156 	matches 2 to 5 of the preceding atom	\{2,5}  \{2,5}
    157 		  separates two alternatives	\|	\|
    158 		group a pattern into an atom	\(\)	\(\)
    159 
    160 |search-offset|		Offsets allowed after search command
    161 
    162     [num]	[num] lines downwards, in column 1
    163     +[num]	[num] lines downwards, in column 1
    164     -[num]	[num] lines upwards, in column 1
    165     e[+num]	[num] characters to the right of the end of the match
    166     e[-num]	[num] characters to the left of the end of the match
    167     s[+num]	[num] characters to the right of the start of the match
    168     s[-num]	[num] characters to the left of the start of the match
    169     b[+num]	[num] identical to s[+num] above (mnemonic: begin)
    170     b[-num]	[num] identical to s[-num] above (mnemonic: begin)
    171     ;{search-command}	execute {search-command} next
    172 ------------------------------------------------------------------------------
    173 *Q_ma*		Marks and motions
    174 
    175 |m|        m{a-zA-Z}	mark current position with mark {a-zA-Z}
    176 |`a|       `{a-z}	go to mark {a-z} within current file
    177 |`A|       `{A-Z}	go to mark {A-Z} in any file
    178 |`0|       `{0-9}	go to the position where Vim was previously exited
    179 |``|       ``		go to the position before the last jump
    180 |`quote|   `"		go to the position when last editing this file
    181 |`[|       `[		go to the start of the previously operated or put text
    182 |`]|       `]		go to the end of the previously operated or put text
    183 |`<|       `<		go to the start of the (previous) Visual area
    184 |`>|       `>		go to the end of the (previous) Visual area
    185 |`.|       `.		go to the position of the last change in this file
    186 |'|        '{a-zA-Z0-9[]'"<>.}
    187 			same as `, but on the first non-blank in the line
    188 |:marks|  :marks	print the active marks
    189 |CTRL-O|  N  CTRL-O	go to Nth older position in jump list
    190 |CTRL-I|  N  CTRL-I	go to Nth newer position in jump list
    191 |:ju|     :ju[mps]	print the jump list
    192 ------------------------------------------------------------------------------
    193 *Q_vm*		Various motions
    194 
    195 |%|	   %		find the next brace, bracket, comment, or "#if"/
    196 			   "#else"/"#endif" in this line and go to its match
    197 |H|	N  H		go to the Nth line in the window, on the first
    198 			   non-blank
    199 |M|	   M		go to the middle line in the window, on the first
    200 			   non-blank
    201 |L|	N  L		go to the Nth line from the bottom, on the first
    202 			   non-blank
    203 
    204 |go|	N  go			go to Nth byte in the buffer
    205 |:go|	:[range]go[to] [off]	go to [off] byte in the buffer
    206 ------------------------------------------------------------------------------
    207 *Q_ta*		Using tags
    208 
    209 |:ta|      :ta[g][!] {tag}	jump to tag {tag}
    210 |:ta|      :[count]ta[g][!]	jump to [count]'th newer tag in tag list
    211 |CTRL-]|      CTRL-]		jump to the tag under cursor, unless changes
    212 				   have been made
    213 |:ts|      :ts[elect][!] [tag]	list matching tags and select one to jump to
    214 |:tjump|   :tj[ump][!] [tag]	jump to tag [tag] or select from list when
    215 				   there are multiple matches
    216 |:ltag|    :lt[ag][!] [tag]	jump to tag [tag] and add matching tags to the
    217 				   location list
    218 
    219 |:tags|    :tags		print tag list
    220 |CTRL-T|   N  CTRL-T		jump back from Nth older tag in tag list
    221 |:po|      :[count]po[p][!]	jump back from [count]'th older tag in tag list
    222 |:tnext|   :[count]tn[ext][!]	jump to [count]'th next matching tag
    223 |:tp|      :[count]tp[revious][!] jump to [count]'th previous matching tag
    224 |:tr|      :[count]tr[ewind][!]	jump to [count]'th matching tag
    225 |:tl|      :tl[ast][!]		jump to last matching tag
    226 
    227 |:ptag|    :pt[ag] {tag}	open a preview window to show tag {tag}
    228 |CTRL-W_}|    CTRL-W }		like CTRL-] but show tag in preview window
    229 |:pts|     :pts[elect]		like ":tselect" but show tag in preview window
    230 |:ptjump|  :ptj[ump]		like ":tjump" but show tag in preview window
    231 |:pclose|  :pc[lose]		close tag preview window
    232 |CTRL-W_z|    CTRL-W z		close tag preview window
    233 ------------------------------------------------------------------------------
    234 *Q_sc*		Scrolling
    235 
    236 |CTRL-E|	N  CTRL-E	window N lines downwards (default: 1)
    237 |CTRL-D|	N  CTRL-D	window N lines Downwards (default: 1/2 window)
    238 |CTRL-F|	N  CTRL-F	window N pages Forwards (downwards)
    239 |CTRL-Y|	N  CTRL-Y	window N lines upwards (default: 1)
    240 |CTRL-U|	N  CTRL-U	window N lines Upwards (default: 1/2 window)
    241 |CTRL-B|	N  CTRL-B	window N pages Backwards (upwards)
    242 |z<CR>|		   z<CR> or zt	redraw, current line at top of window
    243 |z.|		   z.	 or zz	redraw, current line at center of window
    244 |z-|		   z-	 or zb	redraw, current line at bottom of window
    245 
    246 These only work when 'wrap' is off:
    247 |zh|		N  zh		scroll screen N characters to the right
    248 |zl|		N  zl		scroll screen N characters to the left
    249 |zH|		N  zH		scroll screen half a screenwidth to the right
    250 |zL|		N  zL		scroll screen half a screenwidth to the left
    251 ------------------------------------------------------------------------------
    252 *Q_in*		Inserting text
    253 
    254 |a|	N  a	append text after the cursor (N times)
    255 |A|	N  A	append text at the end of the line (N times)
    256 |i|	N  i	insert text before the cursor (N times) (also: <Insert>)
    257 |I|	N  I	insert text before the first non-blank in the line (N times)
    258 |gI|	N  gI	insert text in column 1 (N times)
    259 |o|	N  o	open a new line below the current line, append text (N times)
    260 |O|	N  O	open a new line above the current line, append text (N times)
    261 |:startinsert|  :star[tinsert][!]  start Insert mode, append when [!] used
    262 |:startreplace| :startr[eplace][!]  start Replace mode, at EOL when [!] used
    263 
    264 in Visual block mode:
    265 |v_b_I|	   I	insert the same text in front of all the selected lines
    266 |v_b_A|	   A	append the same text after all the selected lines
    267 ------------------------------------------------------------------------------
    268 *Q_ai*		Insert mode keys
    269 
    270 |insert-index|	alphabetical index of Insert mode commands
    271 
    272 leaving Insert mode:
    273 |i_<Esc>|	<Esc>		  end Insert mode, back to Normal mode
    274 |i_CTRL-C|	CTRL-C		  like <Esc>, but do not use an abbreviation
    275 |i_CTRL-O|	CTRL-O {command}  execute {command} and return to Insert mode
    276 
    277 moving around:
    278 |i_<Up>|	cursor keys	  move cursor left/right/up/down
    279 |i_<S-Left>|	shift-left/right  one word left/right
    280 |i_<S-Up>|	shift-up/down	  one screenful backward/forward
    281 |i_<End>|	<End>		  cursor after last character in the line
    282 |i_<Home>|	<Home>		  cursor to first character in the line
    283 ------------------------------------------------------------------------------
    284 *Q_ss*		Special keys in Insert mode
    285 
    286 |i_CTRL-V|	CTRL-V {char}..	  insert character literally, or enter decimal
    287 				     byte value
    288 |i_<NL>|	<NL> or <CR> or CTRL-M or CTRL-J
    289 				  begin new line
    290 |i_CTRL-E|	CTRL-E		  insert the character from below the cursor
    291 |i_CTRL-Y|	CTRL-Y		  insert the character from above the cursor
    292 
    293 |i_CTRL-A|	CTRL-A		  insert previously inserted text
    294 |i_CTRL-@|	CTRL-@		  insert previously inserted text and stop
    295 				     Insert mode
    296 |i_CTRL-R|	CTRL-R {register} insert the contents of a register
    297 
    298 |i_CTRL-N|	CTRL-N		  insert next match of identifier before the
    299 				     cursor
    300 |i_CTRL-P|	CTRL-P		  insert previous match of identifier before
    301 				     the cursor
    302 |i_CTRL-X|	CTRL-X ...	  complete the word before the cursor in
    303 				     various ways
    304 
    305 |i_<BS>|	<BS> or CTRL-H	  delete the character before the cursor
    306 |i_<Del>|	<Del>		  delete the character under the cursor
    307 |i_CTRL-W|	CTRL-W		  delete word before the cursor
    308 |i_CTRL-U|	CTRL-U		  delete all entered characters in the current
    309 				     line
    310 |i_CTRL-T|	CTRL-T		  insert one shiftwidth of indent in front of
    311 				       the current line
    312 |i_CTRL-D|	CTRL-D		  delete one shiftwidth of indent in front of
    313 				     the current line
    314 |i_0_CTRL-D|	0 CTRL-D	  delete all indent in the current line
    315 |i_^_CTRL-D|	^ CTRL-D	  delete all indent in the current line,
    316 				     restore indent in next line
    317 ------------------------------------------------------------------------------
    318 *Q_di*		Digraphs
    319 
    320 |:dig|	   :dig[raphs]		show current list of digraphs
    321 |:dig|	   :dig[raphs] {char1}{char2} {number} ...
    322 				add digraph(s) to the list
    323 
    324 In Insert or Command-line mode:
    325 |i_CTRL-K|	CTRL-K {char1} {char2}
    326 				  enter digraph
    327 |i_digraph|	{char1} <BS> {char2}
    328 				  enter digraph if 'digraph' option set
    329 ------------------------------------------------------------------------------
    330 *Q_si*		Special inserts
    331 
    332 |:r|	   :r [file]	   insert the contents of [file] below the cursor
    333 |:r!|	   :r! {command}   insert the standard output of {command} below the
    334 			      cursor
    335 ------------------------------------------------------------------------------
    336 *Q_de*		Deleting text
    337 
    338 |x|	N  x		delete N characters under and after the cursor
    339 |<Del>|	N  <Del>	delete N characters under and after the cursor
    340 |X|	N  X		delete N characters before the cursor
    341 |d|	N  d{motion}	delete the text that is moved over with {motion}
    342 |v_d|	   {visual}d	delete the highlighted text
    343 |dd|	N  dd		delete N lines
    344 |D|	N  D		delete to the end of the line (and N-1 more lines)
    345 |J|	N  J		join N-1 lines (delete <EOL>s)
    346 |v_J|	   {visual}J	join the highlighted lines
    347 |gJ|	N  gJ		like "J", but without inserting spaces
    348 |v_gJ|	   {visual}gJ	like "{visual}J", but without inserting spaces
    349 |:d|	:[range]d [x]	delete [range] lines [into register x]
    350 ------------------------------------------------------------------------------
    351 *Q_cm*		Copying and moving text
    352 
    353 |quote|	  "{char}	use register {char} for the next delete, yank, or put
    354 |:reg|	  :reg		show the contents of all registers
    355 |:reg|	  :reg {arg}	show the contents of registers mentioned in {arg}
    356 |y|	  N  y{motion}	yank the text moved over with {motion} into a register
    357 |v_y|	     {visual}y	yank the highlighted text into a register
    358 |yy|	  N  yy		yank N lines into a register
    359 |Y|	  N  Y		yank N lines into a register
    360 |p|	  N  p		put a register after the cursor position (N times)
    361 |P|	  N  P		put a register before the cursor position (N times)
    362 |]p|	  N  ]p		like p, but adjust indent to current line
    363 |[p|	  N  [p		like P, but adjust indent to current line
    364 |gp|	  N  gp		like p, but leave cursor after the new text
    365 |gP|	  N  gP		like P, but leave cursor after the new text
    366 ------------------------------------------------------------------------------
    367 *Q_ch*		Changing text
    368 
    369 |r|	  N  r{char}	replace N characters with {char}
    370 |gr|	  N  gr{char}	replace N characters without affecting layout
    371 |R|	  N  R		enter Replace mode (repeat the entered text N times)
    372 |gR|	  N  gR		enter virtual Replace mode: Like Replace mode but
    373 			   without affecting layout
    374 |v_b_r|	     {visual}r{char}
    375 			in Visual block mode: Replace each char of the
    376 			   selected text with {char}
    377 
    378 	(change = delete text and enter Insert mode)
    379 |c|	  N  c{motion}	change the text that is moved over with {motion}
    380 |v_c|	     {visual}c	change the highlighted text
    381 |cc|	  N  cc		change N lines
    382 |S|	  N  S		change N lines
    383 |C|	  N  C		change to the end of the line (and N-1 more lines)
    384 |s|	  N  s		change N characters
    385 |v_b_c|	     {visual}c	in Visual block mode: Change each of the selected
    386 			   lines with the entered text
    387 |v_b_C|	     {visual}C	in Visual block mode: Change each of the selected
    388 			   lines until end-of-line with the entered text
    389 
    390 |~|	  N  ~		switch case for N characters and advance cursor
    391 |v_~|	     {visual}~	switch case for highlighted text
    392 |v_u|	     {visual}u	make highlighted text lowercase
    393 |v_U|	     {visual}U	make highlighted text uppercase
    394 |g~|	     g~{motion} switch case for the text that is moved over with
    395 			   {motion}
    396 |gu|	     gu{motion} make the text that is moved over with {motion}
    397 			   lowercase
    398 |gU|	     gU{motion} make the text that is moved over with {motion}
    399 			   uppercase
    400 |v_g?|	     {visual}g? perform rot13 encoding on highlighted text
    401 |g?|	     g?{motion} perform rot13 encoding on the text that is moved over
    402 			   with {motion}
    403 
    404 |CTRL-A|  N  CTRL-A	add N to the number at or after the cursor
    405 |CTRL-X|  N  CTRL-X	subtract N from the number at or after the cursor
    406 
    407 |<|	  N  <{motion}	move the lines that are moved over with {motion} one
    408 			   shiftwidth left
    409 |<<|	  N  <<		move N lines one shiftwidth left
    410 |>|	  N  >{motion}	move the lines that are moved over with {motion} one
    411 			   shiftwidth right
    412 |>>|	  N  >>		move N lines one shiftwidth right
    413 |gq|	  N  gq{motion}	format the lines that are moved over with {motion} to
    414 			   'textwidth' length
    415 |:ce|	  :[range]ce[nter] [width]
    416 			center the lines in [range]
    417 |:le|	  :[range]le[ft] [indent]
    418 			left-align the lines in [range] (with [indent])
    419 |:ri|	  :[range]ri[ght] [width]
    420 			right-align the lines in [range]
    421 ------------------------------------------------------------------------------
    422 *Q_co*		Complex changes
    423 
    424 |!|	   N  !{motion}{command}<CR>
    425 			filter the lines that are moved over through {command}
    426 |!!|	   N  !!{command}<CR>
    427 			filter N lines through {command}
    428 |v_!|	      {visual}!{command}<CR>
    429 			filter the highlighted lines through {command}
    430 |:range!|  :[range]! {command}<CR>
    431 			filter [range] lines through {command}
    432 |=|	   N  ={motion}
    433 			filter the lines that are moved over through 'equalprg'
    434 |==|	   N  ==	filter N lines through 'equalprg'
    435 |v_=|	      {visual}=
    436 			filter the highlighted lines through 'equalprg'
    437 |:s|	   :[range]s[ubstitute]/{pattern}/{string}/[g][c]
    438 			substitute {pattern} by {string} in [range] lines;
    439 			   with [g], replace all occurrences of {pattern};
    440 			   with [c], confirm each replacement
    441 |:s|	   :[range]s[ubstitute] [g][c]
    442 			repeat previous ":s" with new range and options
    443 |&|	      &		Repeat previous ":s" on current line without options
    444 |:ret|	   :[range]ret[ab][!] [tabstop]
    445 			set 'tabstop' to new value and adjust white space
    446 			   accordingly
    447 ------------------------------------------------------------------------------
    448 *Q_vi*		Visual mode
    449 
    450 |visual-index|	list of Visual mode commands.
    451 
    452 |v|        v		start highlighting characters  }  move cursor and use
    453 |V|        V		start highlighting linewise    }  operator to affect
    454 |CTRL-V|   CTRL-V	start highlighting blockwise   }  highlighted text
    455 |v_o|      o		exchange cursor position with start of highlighting
    456 |gv|       gv		start highlighting on previous visual area
    457 |v_v|      v		highlight characters or stop highlighting
    458 |v_V|      V		highlight linewise or stop highlighting
    459 |v_CTRL-V| CTRL-V	highlight blockwise or stop highlighting
    460 ------------------------------------------------------------------------------
    461 *Q_to*		Text objects (only in Visual mode or after an operator)
    462 
    463 |v_aw|	   N  aw	Select "a word"
    464 |v_iw|	   N  iw	Select "inner word"
    465 |v_aW|	   N  aW	Select "a |WORD|"
    466 |v_iW|	   N  iW	Select "inner |WORD|"
    467 |v_as|	   N  as	Select "a sentence"
    468 |v_is|	   N  is	Select "inner sentence"
    469 |v_ap|	   N  ap	Select "a paragraph"
    470 |v_ip|	   N  ip	Select "inner paragraph"
    471 |v_ab|	   N  ab	Select "a block" (from "[(" to "])")
    472 |v_ib|	   N  ib	Select "inner block" (from "[(" to "])")
    473 |v_aB|	   N  aB	Select "a Block" (from "[{" to "]}")
    474 |v_iB|	   N  iB	Select "inner Block" (from "[{" to "]}")
    475 |v_a>|	   N  a>	Select "a <> block"
    476 |v_i>|	   N  i>	Select "inner <> block"
    477 |v_at|	   N  at	Select "a tag block" (from <aaa> to </aaa>)
    478 |v_it|	   N  it	Select "inner tag block" (from <aaa> to </aaa>)
    479 |v_a'|	   N  a'	Select "a single quoted string"
    480 |v_i'|	   N  i'	Select "inner single quoted string"
    481 |v_aquote| N  a"	Select "a double quoted string"
    482 |v_iquote| N  i"	Select "inner double quoted string"
    483 |v_a`|	   N  a`	Select "a backward quoted string"
    484 |v_i`|	   N  i`	Select "inner backward quoted string"
    485 
    486 ------------------------------------------------------------------------------
    487 *Q_re*		Repeating commands
    488 
    489 |.|	   N  .		repeat last change (with count replaced with N)
    490 |q|	      q{a-z}	record typed characters into register {a-z}
    491 |q|	      q{A-Z}	record typed characters, appended to register {a-z}
    492 |q|	      q		stop recording
    493 |@|	   N  @{a-z}	execute the contents of register {a-z} (N times)
    494 |@@|	   N  @@	   repeat previous @{a-z} (N times)
    495 |:@|	   :@{a-z}	execute the contents of register {a-z} as an Ex
    496 			   command
    497 |:@@|	   :@@		repeat previous :@{a-z}
    498 |:g|	   :[range]g[lobal]/{pattern}/[cmd]
    499 			execute Ex command [cmd] (default: ":p") on the lines
    500 			   within [range] where {pattern} matches
    501 |:g|	   :[range]g[lobal]!/{pattern}/[cmd]
    502 			execute Ex command [cmd] (default: ":p") on the lines
    503 			   within [range] where {pattern} does NOT match
    504 |:so|	   :so[urce] {file}
    505 			read Ex commands from {file}
    506 |:so|	   :so[urce]! {file}
    507 			read Vim commands from {file}
    508 |:sl|	   :sl[eep] [sec]
    509 			don't do anything for [sec] seconds
    510 |gs|	   N  gs	goto Sleep for N seconds
    511 ------------------------------------------------------------------------------
    512 *Q_km*		Key mapping
    513 
    514 |:map|       :ma[p] {lhs} {rhs}	  map {lhs} to {rhs} in Normal and Visual mode
    515 |:map!|      :ma[p]! {lhs} {rhs}  map {lhs} to {rhs} in Insert and Command-line
    516 				     mode
    517 |:noremap|   :no[remap][!] {lhs} {rhs}
    518 				  same as ":map", no remapping for this {rhs}
    519 |:unmap|     :unm[ap] {lhs}	  remove the mapping of {lhs} for Normal and
    520 				     Visual mode
    521 |:unmap!|    :unm[ap]! {lhs}	  remove the mapping of {lhs} for Insert and
    522 				     Command-line mode
    523 |:map_l|     :ma[p] [lhs]	  list mappings (starting with [lhs]) for
    524 				     Normal and Visual mode
    525 |:map_l!|    :ma[p]! [lhs]	  list mappings (starting with [lhs]) for
    526 				     Insert and Command-line mode
    527 |:cmap|      :cmap/:cunmap/:cnoremap
    528 				  like ":map!"/":unmap!"/":noremap!" but for
    529 				     Command-line mode only
    530 |:imap|      :imap/:iunmap/:inoremap
    531 				  like ":map!"/":unmap!"/":noremap!" but for
    532 				     Insert mode only
    533 |:nmap|      :nmap/:nunmap/:nnoremap
    534 				  like ":map"/":unmap"/":noremap" but for
    535 				     Normal mode only
    536 |:vmap|      :vmap/:vunmap/:vnoremap
    537 				  like ":map"/":unmap"/":noremap" but for
    538 				     Visual mode only
    539 |:omap|      :omap/:ounmap/:onoremap
    540 				  like ":map"/":unmap"/":noremap" but only for
    541 				     when an operator is pending
    542 |:mapc|      :mapc[lear]	  remove mappings for Normal and Visual mode
    543 |:mapc|      :mapc[lear]!	  remove mappings for Insert and Cmdline mode
    544 |:imapc|     :imapc[lear]	  remove mappings for Insert mode
    545 |:vmapc|     :vmapc[lear]	  remove mappings for Visual mode
    546 |:omapc|     :omapc[lear]	  remove mappings for Operator-pending mode
    547 |:nmapc|     :nmapc[lear]	  remove mappings for Normal mode
    548 |:cmapc|     :cmapc[lear]	  remove mappings for Cmdline mode
    549 |:mkexrc|    :mk[exrc][!] [file]  write current mappings, abbreviations, and
    550 				     settings to [file] (default: ".exrc";
    551 				     use ! to overwrite)
    552 |:mkvimrc|   :mkv[imrc][!] [file]
    553 				  same as ":mkexrc", but with default ".vimrc"
    554 |:mksession| :mks[ession][!] [file]
    555 				  like ":mkvimrc", but store current files,
    556 				     windows, etc. too, to be able to continue
    557 				     this session later
    558 ------------------------------------------------------------------------------
    559 *Q_ab*		Abbreviations
    560 
    561 |:abbreviate|	:ab[breviate] {lhs} {rhs}  add abbreviation for {lhs} to {rhs}
    562 |:abbreviate|	:ab[breviate] {lhs}	   show abbr's that start with {lhs}
    563 |:abbreviate|	:ab[breviate]		   show all abbreviations
    564 |:unabbreviate|	:una[bbreviate] {lhs}	   remove abbreviation for {lhs}
    565 |:noreabbrev|	:norea[bbrev] [lhs] [rhs]  like ":ab", but don't remap [rhs]
    566 |:iabbrev|	:iab/:iunab/:inoreab	   like ":ab", but only for Insert mode
    567 |:cabbrev|	:cab/:cunab/:cnoreab	   like ":ab", but only for
    568 						Command-line mode
    569 |:abclear|	:abc[lear]		   remove all abbreviations
    570 |:cabclear|	:cabc[lear]		   remove all abbr's for Cmdline mode
    571 |:iabclear|	:iabc[lear]		   remove all abbr's for Insert mode
    572 ------------------------------------------------------------------------------
    573 *Q_op*		Options
    574 
    575 |:set|		:se[t]			  show all modified options
    576 |:set|		:se[t] all		  show all non-termcap options
    577 |:set|		:se[t] termcap		  show all termcap options
    578 |:set|		:se[t] {option}		  set boolean option (switch it on),
    579 					  show string or number option
    580 |:set|		:se[t] no{option}	  reset boolean option (switch it off)
    581 |:set|		:se[t] inv{option}	  invert boolean option
    582 |:set|		:se[t] {option}={value}	  set string/number option to {value}
    583 |:set|		:se[t] {option}+={value}  append {value} to string option, add
    584 					  {value} to number option
    585 |:set|		:se[t] {option}-={value}  remove {value} to string option,
    586 					  subtract {value} from number option
    587 |:set|		:se[t] {option}?	  show value of {option}
    588 |:set|		:se[t] {option}&	  reset {option} to its default value
    589 
    590 |:setlocal|	:setl[ocal]		  like ":set" but set the local value
    591 					  for options that have one
    592 |:setglobal|	:setg[lobal]		  like ":set" but set the global value
    593 					  of a local option
    594 
    595 |:fix|		:fix[del]		  set value of 't_kD' according to
    596 					  value of 't_kb'
    597 |:options|	:opt[ions]		  open a new window to view and set
    598 					  options, grouped by functionality,
    599 					  a one line explanation and links to
    600 					  the help
    601 
    602 Short explanation of each option:		*option-list*
    603 'aleph'		  'al'	    ASCII code of the letter Aleph (Hebrew)
    604 'allowrevins'	  'ari'     allow CTRL-_ in Insert and Command-line mode
    605 'altkeymap'	  'akm'	    obsolete option for Farsi
    606 'ambiwidth'	  'ambw'    what to do with Unicode chars of ambiguous width
    607 'antialias'	  'anti'    Mac OS X: use smooth, antialiased fonts
    608 'arabic'	  'arab'    for Arabic as a default second language
    609 'arabicshape'	  'arshape' do shaping for Arabic characters
    610 'autochdir'	  'acd'     change directory to the file in the current window
    611 'autocomplete'	  'ac'      enable automatic completion in insert mode
    612 'autocompletedelay' 'acl'   delay in msec before menu appears after typing
    613 'autocompletetimeout' 'act' initial decay timeout for autocompletion algorithm
    614 'autoindent'	  'ai'	    take indent for new line from previous line
    615 'autoread'	  'ar'	    autom. read file when changed outside of Vim
    616 'autoshelldir'	  'asd'     change directory to the shell's current directory
    617 'autowrite'	  'aw'	    automatically write file if changed
    618 'autowriteall'	  'awa'     as 'autowrite', but works with more commands
    619 'background'	  'bg'	    "dark" or "light", used for highlight colors
    620 'backspace'	  'bs'	    how backspace works at start of line
    621 'backup'	  'bk'	    keep backup file after overwriting a file
    622 'backupcopy'	  'bkc'     make backup as a copy, don't rename the file
    623 'backupdir'	  'bdir'    list of directories for the backup file
    624 'backupext'	  'bex'     extension used for the backup file
    625 'backupskip'	  'bsk'     no backup for files that match these patterns
    626 'balloondelay'	  'bdlay'   delay in mS before a balloon may pop up
    627 'ballooneval'	  'beval'     switch on balloon evaluation in the GUI
    628 'balloonevalterm' 'bevalterm' switch on balloon evaluation in the terminal
    629 'balloonexpr'	  'bexpr'   expression to show in balloon
    630 'belloff'	  'bo'	    do not ring the bell for these reasons
    631 'binary'	  'bin'     read/write/edit file in binary mode
    632 'bioskey'	  'biosk'   MS-DOS: use bios calls for input characters
    633 'bomb'			    prepend a Byte Order Mark to the file
    634 'breakat'	  'brk'     characters that may cause a line break
    635 'breakindent'	  'bri'     wrapped line repeats indent
    636 'breakindentopt'  'briopt'  settings for 'breakindent'
    637 'browsedir'	  'bsdir'   which directory to start browsing in
    638 'bufhidden'	  'bh'	    what to do when buffer is no longer in window
    639 'buflisted'	  'bl'	    whether the buffer shows up in the buffer list
    640 'buftype'	  'bt'	    special type of buffer
    641 'casemap'	  'cmp'     specifies how case of letters is changed
    642 'cdhome'	  'cdh'	    change directory to the home directory by ":cd"
    643 'cdpath'	  'cd'	    list of directories searched with ":cd"
    644 'cedit'			    key used to open the command-line window
    645 'charconvert'	  'ccv'     expression for character encoding conversion
    646 'chistory'	  'chi'     maximum number of quickfix lists in history
    647 'cindent'	  'cin'     do C program indenting
    648 'cinkeys'	  'cink'    keys that trigger indent when 'cindent' is set
    649 'cinoptions'	  'cino'    how to do indenting when 'cindent' is set
    650 'cinscopedecls'	  'cinsd'   words that are recognized by 'cino-g'
    651 'cinwords'	  'cinw'    words where 'si' and 'cin' add an indent
    652 'clipboard'	  'cb'	    use the clipboard as the unnamed register
    653 'clipmethod'	  'cpm'	    specify order of what clipboard methods to use
    654 'cmdheight'	  'ch'	    number of lines to use for the command-line
    655 'cmdwinheight'	  'cwh'     height of the command-line window
    656 'colorcolumn'	  'cc'	    columns to highlight
    657 'columns'	  'co'	    number of columns in the display
    658 'comments'	  'com'     patterns that can start a comment line
    659 'commentstring'   'cms'     template for comments; used for fold marker
    660 'compatible'	  'cp'	    behave Vi-compatible as much as possible
    661 'complete'	  'cpt'     specify how Insert mode completion works
    662 'completefunc'	  'cfu'     function to be used for Insert mode completion
    663 'completeopt'	  'cot'     options for Insert mode completion
    664 'completepopup'	  'cpp'     options for the Insert mode completion info popup
    665 'completeslash'	  'csl'	    like 'shellslash' for completion
    666 'completetimeout' 'cto'     initial decay timeout for CTRL-N and CTRL-P
    667 'concealcursor'	  'cocu'    whether concealable text is hidden in cursor line
    668 'conceallevel'	  'cole'    whether concealable text is shown or hidden
    669 'confirm'	  'cf'	    ask what to do about unsaved/read-only files
    670 'conskey'	  'consk'   get keys directly from console (MS-DOS only)
    671 'copyindent'	  'ci'	    make 'autoindent' use existing indent structure
    672 'cpoptions'	  'cpo'     flags for Vi-compatible behavior
    673 'cryptmethod'	  'cm'	    type of encryption to use for file writing
    674 'cscopepathcomp'  'cspc'    how many components of the path to show
    675 'cscopeprg'       'csprg'   command to execute cscope
    676 'cscopequickfix'  'csqf'    use quickfix window for cscope results
    677 'cscoperelative'  'csre'    Use cscope.out path basename as prefix
    678 'cscopetag'       'cst'     use cscope for tag commands
    679 'cscopetagorder'  'csto'    determines ":cstag" search order
    680 'cscopeverbose'   'csverb'  give messages when adding a cscope database
    681 'cursorbind'	  'crb'     move cursor in window as it moves in other windows
    682 'cursorcolumn'	  'cuc'	    highlight the screen column of the cursor
    683 'cursorline'	  'cul'	    highlight the screen line of the cursor
    684 'cursorlineopt'	  'culopt'  settings for 'cursorline'
    685 'debug'			    set to "msg" to see all error messages
    686 'define'	  'def'     pattern to be used to find a macro definition
    687 'delcombine'	  'deco'    delete combining characters on their own
    688 'dictionary'	  'dict'    list of file names used for keyword completion
    689 'diff'			    use diff mode for the current window
    690 'diffanchors'	  'dia'     list of {address} to force anchoring of a diff
    691 'diffexpr'	  'dex'     expression used to obtain a diff file
    692 'diffopt'	  'dip'     options for using diff mode
    693 'digraph'	  'dg'	    enable the entering of digraphs in Insert mode
    694 'directory'	  'dir'     list of directory names for the swap file
    695 'display'	  'dy'	    list of flags for how to display text
    696 'eadirection'	  'ead'     in which direction 'equalalways' works
    697 'edcompatible'	  'ed'	    toggle flags of ":substitute" command
    698 'emoji'		  'emo'	    emoji characters are considered full width
    699 'encoding'	  'enc'     encoding used internally
    700 'endoffile'	  'eof'     write CTRL-Z at end of the file
    701 'endofline'	  'eol'     write <EOL> for last line in file
    702 'equalalways'	  'ea'	    windows are automatically made the same size
    703 'equalprg'	  'ep'	    external program to use for "=" command
    704 'errorbells'	  'eb'	    ring the bell for error messages
    705 'errorfile'	  'ef'	    name of the errorfile for the QuickFix mode
    706 'errorformat'	  'efm'     description of the lines in the error file
    707 'esckeys'	  'ek'	    recognize function keys in Insert mode
    708 'eventignore'	  'ei'	    autocommand events that are ignored
    709 'eventignorewin'  'eiw'     autocommand events that are ignored in a window
    710 'expandtab'	  'et'	    use spaces when <Tab> is inserted
    711 'exrc'		  'ex'	    read .vimrc and .exrc in the current directory
    712 'fileencoding'	  'fenc'    file encoding for multibyte text
    713 'fileencodings'   'fencs'   automatically detected character encodings
    714 'fileformat'	  'ff'	    file format used for file I/O
    715 'fileformats'	  'ffs'     automatically detected values for 'fileformat'
    716 'fileignorecase'  'fic'     ignore case when using file names
    717 'filetype'	  'ft'	    type of file, used for autocommands
    718 'fillchars'	  'fcs'     characters to use for displaying special items
    719 'findfunc'	  'ffu'     function to be called for the |:find| command
    720 'fixendofline'	  'fixeol'  make sure last line in file has <EOL>
    721 'fkmap'		  'fk'	    obsolete option for Farsi
    722 'foldclose'	  'fcl'     close a fold when the cursor leaves it
    723 'foldcolumn'	  'fdc'     width of the column used to indicate folds
    724 'foldenable'	  'fen'     set to display all folds open
    725 'foldexpr'	  'fde'     expression used when 'foldmethod' is "expr"
    726 'foldignore'	  'fdi'     ignore lines when 'foldmethod' is "indent"
    727 'foldlevel'	  'fdl'     close folds with a level higher than this
    728 'foldlevelstart'  'fdls'    'foldlevel' when starting to edit a file
    729 'foldmarker'	  'fmr'     markers used when 'foldmethod' is "marker"
    730 'foldmethod'	  'fdm'     folding type
    731 'foldminlines'	  'fml'     minimum number of lines for a fold to be closed
    732 'foldnestmax'	  'fdn'     maximum fold depth
    733 'foldopen'	  'fdo'     for which commands a fold will be opened
    734 'foldtext'	  'fdt'     expression used to display for a closed fold
    735 'formatexpr'	  'fex'     expression used with "gq" command
    736 'formatlistpat'   'flp'     pattern used to recognize a list header
    737 'formatoptions'   'fo'	    how automatic formatting is to be done
    738 'formatprg'	  'fp'	    name of external program used with "gq" command
    739 'fsync'		  'fs'	    whether to invoke fsync() after file write
    740 'gdefault'	  'gd'	    the ":substitute" flag 'g' is default on
    741 'grepformat'	  'gfm'     format of 'grepprg' output
    742 'grepprg'	  'gp'	    program to use for ":grep"
    743 'guicursor'	  'gcr'     GUI: settings for cursor shape and blinking
    744 'guifont'	  'gfn'     GUI: Name(s) of font(s) to be used
    745 'guifontset'	  'gfs'     GUI: Names of multibyte fonts to be used
    746 'guifontwide'	  'gfw'     list of font names for double-wide characters
    747 'guiheadroom'	  'ghr'     GUI: pixels room for window decorations
    748 'guiligatures'	  'gli'	    GTK GUI: ASCII characters that can form shapes
    749 'guioptions'	  'go'	    GUI: Which components and options are used
    750 'guipty'		    GUI: try to use a pseudo-tty for ":!" commands
    751 'guitablabel'	  'gtl'     GUI: custom label for a tab page
    752 'guitabtooltip'   'gtt'     GUI: custom tooltip for a tab page
    753 'helpfile'	  'hf'	    full path name of the main help file
    754 'helpheight'	  'hh'	    minimum height of a new help window
    755 'helplang'	  'hlg'     preferred help languages
    756 'hidden'	  'hid'     don't unload buffer when it is |abandon|ed
    757 'highlight'	  'hl'	    sets highlighting mode for various occasions
    758 'history'	  'hi'	    number of command-lines that are remembered
    759 'hkmap'		  'hk'	    Hebrew keyboard mapping
    760 'hkmapp'	  'hkp'     phonetic Hebrew keyboard mapping
    761 'hlsearch'	  'hls'     highlight matches with last search pattern
    762 'icon'			    let Vim set the text of the window icon
    763 'iconstring'		    string to use for the Vim icon text
    764 'ignorecase'	  'ic'	    ignore case in search patterns
    765 'imactivatefunc'  'imaf'    function to enable/disable the X input method
    766 'imactivatekey'   'imak'    key that activates the X input method
    767 'imageprotocol'   'ipc'     image backend to use for what terminal
    768 'imcmdline'	  'imc'     use IM when starting to edit a command line
    769 'imdisable'	  'imd'     do not use the IM in any mode
    770 'iminsert'	  'imi'     use :lmap or IM in Insert mode
    771 'imsearch'	  'ims'     use :lmap or IM when typing a search pattern
    772 'imstatusfunc'    'imsf'    function to obtain X input method status
    773 'imstyle'	  'imst'    specifies the input style of the input method
    774 'include'	  'inc'     pattern to be used to find an include file
    775 'includeexpr'	  'inex'    expression used to process an include line
    776 'incsearch'	  'is'	    highlight match while typing search pattern
    777 'indentexpr'	  'inde'    expression used to obtain the indent of a line
    778 'indentkeys'	  'indk'    keys that trigger indenting with 'indentexpr'
    779 'infercase'	  'inf'     adjust case of match for keyword completion
    780 'insertmode'	  'im'	    start the edit of a file in Insert mode
    781 'isfname'	  'isf'     characters included in file names and pathnames
    782 'isident'	  'isi'     characters included in identifiers
    783 'iskeyword'	  'isk'     characters included in keywords
    784 'isprint'	  'isp'     printable characters
    785 'joinspaces'	  'js'	    two spaces after a period with a join command
    786 'jumpoptions'	  'jop'     specifies how jumping is done
    787 'key'			    encryption key
    788 'keymap'	  'kmp'     name of a keyboard mapping
    789 'keymodel'	  'km'	    enable starting/stopping selection with keys
    790 'keyprotocol'	  'kpc'	    what keyboard protocol to use for what terminal
    791 'keywordprg'	  'kp'	    program to use for the "K" command
    792 'langmap'	  'lmap'    alphabetic characters for other language mode
    793 'langmenu'	  'lm'	    language to be used for the menus
    794 'langnoremap'	  'lnr'	    do not apply 'langmap' to mapped characters
    795 'langremap'	  'lrm'	    do apply 'langmap' to mapped characters
    796 'laststatus'	  'ls'	    tells when last window has status lines
    797 'lazyredraw'	  'lz'	    don't redraw while executing macros
    798 'lhistory'	  'lhi'	    maximum number of location lists in history
    799 'linebreak'	  'lbr'     wrap long lines at a blank
    800 'lines'			    number of lines in the display
    801 'linespace'	  'lsp'     number of pixel lines to use between characters
    802 'lisp'			    automatic indenting for Lisp
    803 'lispoptions'	  'lop'     changes how Lisp indenting is done
    804 'lispwords'	  'lw'	    words that change how lisp indenting works
    805 'list'			    show <Tab> and <EOL>
    806 'listchars'	  'lcs'     characters for displaying in list mode
    807 'loadplugins'	  'lpl'     load plugin scripts when starting up
    808 'luadll'		    name of the Lua dynamic library
    809 'macatsui'		    Mac GUI: use ATSUI text drawing
    810 'magic'			    changes special characters in search patterns
    811 'makeef'	  'mef'     name of the errorfile for ":make"
    812 'makeencoding'	  'menc'    encoding of external make/grep commands
    813 'makeprg'	  'mp'	    program to use for the ":make" command
    814 'matchpairs'	  'mps'     pairs of characters that "%" can match
    815 'matchtime'	  'mat'     tenths of a second to show matching paren
    816 'maxcombine'	  'mco'     maximum nr of combining characters displayed
    817 'maxfuncdepth'	  'mfd'     maximum recursive depth for user functions
    818 'maxmapdepth'	  'mmd'     maximum recursive depth for mapping
    819 'maxmem'	  'mm'	    maximum memory (in Kbyte) used for one buffer
    820 'maxmempattern'   'mmp'     maximum memory (in Kbyte) used for pattern search
    821 'maxmemtot'	  'mmt'     maximum memory (in Kbyte) used for all buffers
    822 'menuitems'	  'mis'     maximum number of items in a menu
    823 'mkspellmem'	  'msm'     memory used before |:mkspell| compresses the tree
    824 'modeline'	  'ml'	    recognize modelines at start or end of file
    825 'modelineexpr'	  'mle'	    allow setting expression options from a modeline
    826 'modelines'	  'mls'     number of lines checked for modelines
    827 'modelinestrict'  'mlst'    only allow safe options in modelines
    828 'modifiable'	  'ma'	    changes to the text are not possible
    829 'modified'	  'mod'     buffer has been modified
    830 'more'			    pause listings when the whole screen is filled
    831 'mouse'			    enable the use of mouse clicks
    832 'mousefocus'	  'mousef'  keyboard focus follows the mouse
    833 'mousehide'	  'mh'	    hide mouse pointer while typing
    834 'mousemodel'	  'mousem'  changes meaning of mouse buttons
    835 'mousemoveevent'  'mousemev'  report mouse moves with <MouseMove>
    836 'mouseshape'	  'mouses'  shape of the mouse pointer in different modes
    837 'mousetime'	  'mouset'  max time between mouse double-click
    838 'mzquantum'	  'mzq'     the interval between polls for MzScheme threads
    839 'mzschemedll'		    name of the MzScheme dynamic library
    840 'mzschemegcdll'		    name of the MzScheme dynamic library for GC
    841 'nrformats'	  'nf'	    number formats recognized for CTRL-A command
    842 'number'	  'nu'	    print the line number in front of each line
    843 'numberwidth'	  'nuw'     number of columns used for the line number
    844 'omnifunc'	  'ofu'     function for filetype-specific completion
    845 'opendevice'	  'odev'    allow reading/writing devices on MS-Windows
    846 'operatorfunc'	  'opfunc'  function to be called for |g@| operator
    847 'osfiletype'	  'oft'     no longer supported
    848 'packpath'	  'pp'      list of directories used for packages
    849 'paragraphs'	  'para'    nroff macros that separate paragraphs
    850 'paste'			    allow pasting text
    851 'pastetoggle'	  'pt'	    key code that causes 'paste' to toggle
    852 'patchexpr'	  'pex'     expression used to patch a file
    853 'patchmode'	  'pm'	    keep the oldest version of a file
    854 'path'		  'pa'	    list of directories searched with "gf" et.al.
    855 'perldll'		    name of the Perl dynamic library
    856 'preserveindent'  'pi'	    preserve the indent structure when reindenting
    857 'previewheight'   'pvh'     height of the preview window
    858 'previewpopup'    'pvp'     use popup window for preview
    859 'previewwindow'   'pvw'     identifies the preview window
    860 'printdevice'	  'pdev'    name of the printer to be used for :hardcopy
    861 'printencoding'   'penc'    encoding to be used for printing
    862 'printexpr'	  'pexpr'   expression used to print PostScript for :hardcopy
    863 'printfont'	  'pfn'     name of the font to be used for :hardcopy
    864 'printheader'	  'pheader' format of the header used for :hardcopy
    865 'printmbcharset'  'pmbcs'   CJK character set to be used for :hardcopy
    866 'printmbfont'	  'pmbfn'   font names to be used for CJK output of :hardcopy
    867 'printoptions'	  'popt'    controls the format of :hardcopy output
    868 'prompt'	  'prompt'  enable prompt in Ex mode
    869 'pumheight'	  'ph'	    maximum height of the popup menu
    870 'pumopt'	  'pumopt'  additional options for the popup menu
    871 'pumwidth'	  'pw'	    minimum width of the popup menu
    872 'pythondll'		    name of the Python 2 dynamic library
    873 'pythonhome'		    name of the Python 2 home directory
    874 'pythonthreedll'	    name of the Python 3 dynamic library
    875 'pythonthreehome'	    name of the Python 3 home directory
    876 'pyxversion'	  'pyx'	    Python version used for pyx* commands
    877 'quickfixtextfunc' 'qftf'   function for the text in the quickfix window
    878 'quoteescape'	  'qe'	    escape characters used in a string
    879 'readonly'	  'ro'	    disallow writing the buffer
    880 'redrawtime'	  'rdt'     timeout for 'hlsearch' and |:match| highlighting
    881 'regexpengine'	  're'	    default regexp engine to use
    882 'relativenumber'  'rnu'	    show relative line number in front of each line
    883 'remap'			    allow mappings to work recursively
    884 'renderoptions'	  'rop'	    options for text rendering on Windows
    885 'report'		    threshold for reporting nr. of lines changed
    886 'restorescreen'   'rs'	    Win32: restore screen when exiting
    887 'revins'	  'ri'	    inserting characters will work backwards
    888 'rightleft'	  'rl'	    window is right-to-left oriented
    889 'rightleftcmd'	  'rlc'     commands for which editing works right-to-left
    890 'rubydll'		    name of the Ruby dynamic library
    891 'ruler'		  'ru'	    show cursor line and column in the status line
    892 'rulerformat'	  'ruf'     custom format for the ruler
    893 'runtimepath'	  'rtp'     list of directories used for runtime files
    894 'scroll'	  'scr'     lines to scroll with CTRL-U and CTRL-D
    895 'scrollbind'	  'scb'     scroll in window as other windows scroll
    896 'scrollfocus'	  'scf'     scroll wheel applies to window under pointer
    897 'scrolljump'	  'sj'	    minimum number of lines to scroll
    898 'scrolloff'	  'so'	    minimum nr. of lines above and below cursor
    899 'scrolloffpad'	  'sop'	    vertically center cursor at end of file
    900 'scrollopt'	  'sbo'     how 'scrollbind' should behave
    901 'sections'	  'sect'    nroff macros that separate sections
    902 'secure'		    secure mode for reading .vimrc in current dir
    903 'selection'	  'sel'     what type of selection to use
    904 'selectmode'	  'slm'     when to use Select mode instead of Visual mode
    905 'sessionoptions'  'ssop'    options for |:mksession|
    906 'shell'		  'sh'	    name of shell to use for external commands
    907 'shellcmdflag'	  'shcf'    flag to shell to execute one command
    908 'shellpipe'	  'sp'	    string to put output of ":make" in error file
    909 'shellquote'	  'shq'     quote character(s) for around shell command
    910 'shellredir'	  'srr'     string to put output of filter in a temp file
    911 'shellslash'	  'ssl'     use forward slash for shell file names
    912 'shelltemp'	  'stmp'    whether to use a temp file for shell commands
    913 'shelltype'	  'st'	    Amiga: influences how to use a shell
    914 'shellxescape'	  'sxe'     characters to escape when 'shellxquote' is (
    915 'shellxquote'	  'sxq'     like 'shellquote', but include redirection
    916 'shiftround'	  'sr'	    round indent to multiple of shiftwidth
    917 'shiftwidth'	  'sw'	    number of spaces to use for (auto)indent step
    918 'shortmess'	  'shm'     list of flags, reduce length of messages
    919 'shortname'	  'sn'	    Filenames assumed to be 8.3 chars
    920 'showbreak'	  'sbr'     string to use at the start of wrapped lines
    921 'showcmd'	  'sc'	    show (partial) command somewhere
    922 'showcmdloc'	  'sloc'    where to show (partial) command
    923 'showfulltag'	  'sft'     show full tag pattern when completing tag
    924 'showmatch'	  'sm'	    briefly jump to matching bracket if insert one
    925 'showmode'	  'smd'     message on status line to show current mode
    926 'showtabline'	  'stal'    tells when the tab pages line is displayed
    927 'sidescroll'	  'ss'	    minimum number of columns to scroll horizontal
    928 'sidescrolloff'   'siso'    min. nr. of columns to left and right of cursor
    929 'signcolumn'	  'scl'	    when to display the sign column
    930 'smartcase'	  'scs'     no ignore case when pattern has uppercase
    931 'smartindent'	  'si'	    smart autoindenting for C programs
    932 'smarttab'	  'sta'     <Tab> in leading whitespace indents by 'shiftwidth'
    933 'smoothscroll'	  'sms'     scroll by screen lines when 'wrap' is set
    934 'softtabstop'	  'sts'     number of columns between two soft tab stops
    935 'spell'			    enable spell checking
    936 'spellcapcheck'   'spc'     pattern to locate end of a sentence
    937 'spellfile'	  'spf'     files where |zg| and |zw| store words
    938 'spelllang'	  'spl'     language(s) to do spell checking for
    939 'spelloptions'	  'spo'     options for spell checking
    940 'spellsuggest'	  'sps'     method(s) used to suggest spelling corrections
    941 'splitbelow'	  'sb'	    new window from split is below the current one
    942 'splitkeep'	  'spk'     determines scroll behavior for split windows
    943 'splitright'	  'spr'     new window is put right of the current one
    944 'startofline'	  'sol'     commands move cursor to first non-blank in line
    945 'statusline'	  'stl'     custom format for the status line
    946 'statuslineopt'	  'stlo'    additional options for the |status-line|
    947 'suffixes'	  'su'	    suffixes that are ignored with multiple match
    948 'suffixesadd'	  'sua'     suffixes added when searching for a file
    949 'swapfile'	  'swf'     whether to use a swapfile for a buffer
    950 'swapsync'	  'sws'     how to sync the swap file
    951 'switchbuf'	  'swb'     sets behavior when switching to another buffer
    952 'synmaxcol'	  'smc'     maximum column to find syntax items
    953 'syntax'	  'syn'     syntax to be loaded for current buffer
    954 'tabclose'	  'tcl'     which tab page to focus when closing a tab
    955 'tabline'	  'tal'     custom format for the console tab pages line
    956 'tabpagemax'	  'tpm'     maximum number of tab pages for |-p| and "tab all"
    957 'tabstop'	  'ts'	    number of columns between two tab stops
    958 'tagbsearch'	  'tbs'     use binary searching in tags files
    959 'tagcase'	  'tc'      how to handle case when searching in tags files
    960 'tagfunc'	  'tfu'	    function to get list of tag matches
    961 'taglength'	  'tl'	    number of significant characters for a tag
    962 'tagrelative'	  'tr'	    file names in tag file are relative
    963 'tags'		  'tag'     list of file names used by the tag command
    964 'tagsecure'	  'tsc'	    do not open remote files using tag commands
    965 'tagstack'	  'tgst'    push tags onto the tag stack
    966 'tcldll'		    name of the Tcl dynamic library
    967 'term'			    name of the terminal
    968 'termbidi'	  'tbidi'   terminal takes care of bi-directionality
    969 'termencoding'	  'tenc'    character encoding used by the terminal
    970 'termguicolors'	  'tgc'     use GUI colors for the terminal
    971 'termsync'	  'tsy'     enable terminal sync mode for redraw
    972 'termwinkey'	  'twk'	    key that precedes a Vim command in a terminal
    973 'termwinscroll'   'twsl'    max number of scrollback lines in a terminal window
    974 'termwinsize'	  'tws'	    size of a terminal window
    975 'termwintype'	  'twt'	    MS-Windows: type of pty to use for terminal window
    976 'terse'			    shorten some messages
    977 'textauto'	  'ta'	    obsolete, use 'fileformats'
    978 'textmode'	  'tx'	    obsolete, use 'fileformat'
    979 'textwidth'	  'tw'	    maximum width of text that is being inserted
    980 'thesaurus'	  'tsr'     list of thesaurus files for keyword completion
    981 'thesaurusfunc'	  'tsrfu'   function to be used for thesaurus completion
    982 'tildeop'	  'top'     tilde command "~" behaves like an operator
    983 'timeout'	  'to'	    time out on mappings and key codes
    984 'timeoutlen'	  'tm'	    time out time in milliseconds
    985 'title'			    let Vim set the title of the window
    986 'titlelen'		    percentage of 'columns' used for window title
    987 'titleold'		    old title, restored when exiting
    988 'titlestring'		    string to use for the Vim window title
    989 'toolbar'	  'tb'	    GUI: which items to show in the toolbar
    990 'toolbariconsize' 'tbis'    size of the toolbar icons (for GTK 2 only)
    991 'ttimeout'		    time out on mappings
    992 'ttimeoutlen'	  'ttm'     time out time for key codes in milliseconds
    993 'ttybuiltin'	  'tbi'     use built-in termcap before external termcap
    994 'ttyfast'	  'tf'	    indicates a fast terminal connection
    995 'ttymouse'	  'ttym'    type of mouse codes generated
    996 'ttyscroll'	  'tsl'     maximum number of lines for a scroll
    997 'ttytype'	  'tty'     alias for 'term'
    998 'undodir'	  'udir'    where to store undo files
    999 'undofile'	  'udf'	    save undo information in a file
   1000 'undolevels'	  'ul'	    maximum number of changes that can be undone
   1001 'undoreload'	  'ur'	    max nr of lines to save for undo on a buffer reload
   1002 'updatecount'	  'uc'	    after this many characters flush swap file
   1003 'updatetime'	  'ut'	    after this many milliseconds flush swap file
   1004 'varsofttabstop'  'vsts'    a list of number of columns between soft tab stops
   1005 'vartabstop'	  'vts'	    a list of number of columns between tab stops
   1006 'verbose'	  'vbs'     give informative messages
   1007 'verbosefile'	  'vfile'   file to write messages in
   1008 'viewdir'	  'vdir'    directory where to store files with :mkview
   1009 'viewoptions'	  'vop'     specifies what to save for :mkview
   1010 'viminfo'	  'vi'	    use .viminfo file upon startup and exiting
   1011 'viminfofile'	  'vif'	    file name used for the viminfo file
   1012 'virtualedit'	  've'	    when to use virtual editing
   1013 'visualbell'	  'vb'	    use visual bell instead of beeping
   1014 'warn'			    warn for shell command when buffer was changed
   1015 'weirdinvert'	  'wiv'	    for terminals that have weird inversion method
   1016 'whichwrap'	  'ww'	    allow specified keys to cross line boundaries
   1017 'wildchar'	  'wc'	    command-line character for wildcard expansion
   1018 'wildcharm'	  'wcm'     like 'wildchar' but also works when mapped
   1019 'wildignore'	  'wig'     files matching these patterns are not completed
   1020 'wildignorecase'  'wic'     ignore case when completing file names
   1021 'wildmenu'	  'wmnu'    use menu for command line completion
   1022 'wildmode'	  'wim'     mode for 'wildchar' command-line expansion
   1023 'wildoptions'	  'wop'     specifies how command line completion is done
   1024 'winaltkeys'	  'wak'     when the windows system handles ALT keys
   1025 'wincolor'	  'wcr'	    window-local highlighting
   1026 'winhighlight'	  'whl'	    window-local highlighting mappings
   1027 'window'	  'wi'	    nr of lines to scroll for CTRL-F and CTRL-B
   1028 'winfixbuf'	  'wfb'     keep window focused on a single buffer
   1029 'winfixheight'	  'wfh'     keep window height when opening/closing windows
   1030 'winfixwidth'	  'wfw'     keep window width when opening/closing windows
   1031 'winheight'	  'wh'	    minimum number of lines for the current window
   1032 'winminheight'	  'wmh'     minimum number of lines for any window
   1033 'winminwidth'	  'wmw'     minimal number of columns for any window
   1034 'winptydll'		    name of the winpty dynamic library
   1035 'winwidth'	  'wiw'     minimal number of columns for current window
   1036 'wlseat'	  'wse'	    the Wayland seat to use
   1037 'wlsteal'	  'wst'	    allow focus stealing functionality for Wayland
   1038 'wltimeoutlen'	  'wtm'	    timeout to use when polling in Wayland
   1039 'wrap'			    long lines wrap and continue on the next line
   1040 'wrapmargin'	  'wm'	    chars from the right where wrapping starts
   1041 'wrapscan'	  'ws'	    searches wrap around the end of the file
   1042 'write'			    writing to a file is allowed
   1043 'writeany'	  'wa'	    write to file with no need for "!" override
   1044 'writebackup'	  'wb'	    make a backup before overwriting a file
   1045 'writedelay'	  'wd'	    delay this many msec for each char (for debug)
   1046 'xtermcodes'		    request terminal codes from an xterm
   1047 ------------------------------------------------------------------------------
   1048 *Q_ur*		Undo/Redo commands
   1049 
   1050 |u|       N  u		undo last N changes
   1051 |CTRL-R|  N  CTRL-R	redo last N undone changes
   1052 |U|          U		restore last changed line
   1053 ------------------------------------------------------------------------------
   1054 *Q_et*		External commands
   1055 
   1056 |:shell|	:sh[ell]	start a shell
   1057 |:!|		:!{command}	execute {command} with a shell
   1058 |K|		   K		lookup keyword under the cursor with
   1059 				   'keywordprg' program (default: "man")
   1060 ------------------------------------------------------------------------------
   1061 *Q_qf*		Quickfix commands
   1062 
   1063 |:cc|		:cc [nr]	display error [nr] (default is the same again)
   1064 |:cnext|	:cn		display the next error
   1065 |:cprevious|	:cp		display the previous error
   1066 |:clist|	:cl		list all errors
   1067 |:cfile|	:cf		read errors from the file 'errorfile'
   1068 |:cgetbuffer|	:cgetb		like :cbuffer but don't jump to the first error
   1069 |:cgetfile|	:cg		like :cfile but don't jump to the first error
   1070 |:cgetexpr|	:cgete		like :cexpr but don't jump to the first error
   1071 |:caddfile|	:caddf		add errors from the error file to the current
   1072 				   quickfix list
   1073 |:caddexpr|	:cad		add errors from an expression to the current
   1074 				   quickfix list
   1075 |:cbuffer|	:cb		read errors from text in a buffer
   1076 |:cexpr|	:cex		read errors from an expression
   1077 |:cquit|	:cq		quit without writing and return error code (to
   1078 				   the compiler)
   1079 |:make|		:make [args]	start make, read errors, and jump to first
   1080 				   error
   1081 |:grep|		:gr[ep] [args]	execute 'grepprg' to find matches and jump to
   1082 				   the first one
   1083 ------------------------------------------------------------------------------
   1084 *Q_vc*		Various commands
   1085 
   1086 |CTRL-L|	   CTRL-L	clear and redraw the screen
   1087 |CTRL-G|	   CTRL-G	show current file name (with path) and cursor
   1088 				   position
   1089 |ga|		   ga		show ascii value of character under cursor in
   1090 				   decimal, hex, and octal
   1091 |g8|		   g8		for utf-8 encoding: show byte sequence for
   1092 				   character under cursor in hex
   1093 |g_CTRL-G|	   g CTRL-G	show cursor column, line, and character
   1094 				   position
   1095 |CTRL-C|	   CTRL-C	during searches: Interrupt the search
   1096 |dos-CTRL-Break|   CTRL-Break	MS-Windows: during searches: Interrupt the
   1097 				   search
   1098 |<Del>|		   <Del>	while entering a count: delete last character
   1099 |:version|	:ve[rsion]	show version information
   1100 |:mode|		:mode N		set screen mode to N (obsolete)
   1101 |:normal|	:norm[al][!] {commands}
   1102 				execute Normal mode commands
   1103 |Q|		   Q		switch to "Ex" mode
   1104 
   1105 |:redir|	:redir >{file}		redirect messages to {file}
   1106 |:silent|	:silent[!] {command}	execute {command} silently
   1107 |:confirm|	:confirm {command}	quit, write, etc., asking about
   1108 					unsaved changes or read-only files
   1109 |:browse|	:browse {command}	open/read/write file, using a
   1110 					file selection dialog
   1111 ------------------------------------------------------------------------------
   1112 *Q_ce*		Command-line editing
   1113 
   1114 |c_<Esc>|	<Esc>		   abandon command-line (if 'wildchar' is
   1115 				      <Esc>, type it twice)
   1116 
   1117 |c_CTRL-V|	CTRL-V {char}	   insert {char} literally
   1118 |c_CTRL-V|	CTRL-V {number}    enter decimal value of character (up to
   1119 				      three digits)
   1120 |c_CTRL-K|	CTRL-K {char1} {char2}
   1121 				   enter digraph (See |Q_di|)
   1122 |c_CTRL-R|	CTRL-R {register}  insert the contents of a register
   1123 
   1124 |c_<Left>|	<Left>/<Right>	   cursor left/right
   1125 |c_<S-Left>|	<S-Left>/<S-Right> cursor one word left/right
   1126 |c_CTRL-B|	CTRL-B/CTRL-E	   cursor to beginning/end of command-line
   1127 
   1128 |c_<BS>|	<BS>		   delete the character in front of the cursor
   1129 |c_<Del>|	<Del>		   delete the character under the cursor
   1130 |c_CTRL-W|	CTRL-W		   delete the word in front of the cursor
   1131 |c_CTRL-U|	CTRL-U		   remove all characters
   1132 
   1133 |c_<Up>|	<Up>/<Down>	   recall older/newer command-line that starts
   1134 				      with current command
   1135 |c_<S-Up>|	<S-Up>/<S-Down>	   recall older/newer command-line from history
   1136 |c_CTRL-G|	CTRL-G		   next match when 'incsearch' is active
   1137 |c_CTRL-T|	CTRL-T		   previous match when 'incsearch' is active
   1138 |:history|	:his[tory]	   show older command-lines
   1139 
   1140 Context-sensitive completion on the command-line:
   1141 
   1142 |c_wildchar|	'wildchar'  (default: <Tab>)
   1143 				do completion on the pattern in front of the
   1144 				   cursor; if there are multiple matches,
   1145 				   beep and show the first one; further
   1146 				   'wildchar' will show the next ones
   1147 |c_CTRL-D|	CTRL-D		list all names that match the pattern in
   1148 				   front of the cursor
   1149 |c_CTRL-A|	CTRL-A		insert all names that match pattern in front
   1150 				   of cursor
   1151 |c_CTRL-L|	CTRL-L		insert longest common part of names that
   1152 				   match pattern
   1153 |c_CTRL-N|	CTRL-N		after 'wildchar' with multiple matches: go
   1154 				   to next match
   1155 |c_CTRL-P|	CTRL-P		after 'wildchar' with multiple matches: go
   1156 				   to previous match
   1157 ------------------------------------------------------------------------------
   1158 *Q_ra*		Ex ranges
   1159 
   1160 |:range|	,		separates two line numbers
   1161 |:range|	;		idem, set cursor to the first line number
   1162 				before interpreting the second one
   1163 
   1164 |:range|	{number}	an absolute line number
   1165 |:range|	.		the current line
   1166 |:range|	$		the last line in the file
   1167 |:range|	%		equal to 1,$ (the entire file)
   1168 |:range|	*		equal to '<,'> (visual area)
   1169 |:range|	't		position of mark t
   1170 |:range|	/{pattern}[/]	the next line where {pattern} matches
   1171 |:range|	?{pattern}[?]	the previous line where {pattern} matches
   1172 
   1173 |:range|	+[num]		add [num] to the preceding line number
   1174 				   (default: 1)
   1175 |:range|	-[num]		subtract [num] from the preceding line
   1176 				   number (default: 1)
   1177 ------------------------------------------------------------------------------
   1178 *Q_ex*		Special Ex characters
   1179 
   1180 |:bar|      |		separates two commands (not for ":global" and ":!")
   1181 |:quote|    "		begins comment
   1182 
   1183 |:_%|       %		current file name (only where a file name is expected)
   1184 |:_#|       #[num]	alternate file name [num] (only where a file name is
   1185 			   expected)
   1186 	Note: The next seven are typed literally; these are not special keys!
   1187 |:<abuf>|   <abuf>	buffer number, for use in an autocommand (only where a
   1188 			   file name is expected)
   1189 |:<afile>|  <afile>	file name, for use in an autocommand (only where a
   1190 			   file name is expected)
   1191 |:<amatch>| <amatch>	what matched with the pattern, for use in an
   1192 			   autocommand (only where a file name is expected)
   1193 |:<cword>|  <cword>	word under the cursor (only where a file name is
   1194 			   expected)
   1195 |:<cWORD>|  <cWORD>	WORD under the cursor (only where a file name is
   1196 			   expected) (see |WORD|)
   1197 |:<cfile>|  <cfile>	file name under the cursor (only where a file name is
   1198 			   expected)
   1199 |:<sfile>|  <sfile>	file name of a ":source"d file, within that file (only
   1200 			   where a file name is expected)
   1201 
   1202 		After "%", "#", "<cfile>", "<sfile>" or "<afile>"
   1203 		|::p|	    :p		full path
   1204 		|::h|	    :h		head (file name removed)
   1205 		|::t|	    :t		tail (file name only)
   1206 		|::r|	    :r		root (extension removed)
   1207 		|::e|	    :e		extension
   1208 		|::s|	    :s/{pat}/{repl}/	substitute {pat} with {repl}
   1209 ------------------------------------------------------------------------------
   1210 *Q_st*		Starting Vim
   1211 
   1212 |-vim|	   vim [options]		start editing with an empty buffer
   1213 |-file|	   vim [options] {file} ..	start editing one or more files
   1214 |--|	   vim [options] -		read file from stdin
   1215 |-tag|	   vim [options] -t {tag}	edit the file associated with {tag}
   1216 |-qf|	   vim [options] -q [fname]	start editing in QuickFix mode,
   1217 					   display the first error
   1218 
   1219 	Most useful Vim arguments (for full list see |startup-options|)
   1220 
   1221 |-gui|	-g		    start GUI (also allows other options)
   1222 
   1223 |-+|	+[num]		    put the cursor at line [num] (default: last line)
   1224 |-+c|	+{command}	    execute {command} after loading the file
   1225 |-+/|	+/{pat} {file} ..   put the cursor at the first occurrence of {pat}
   1226 |-v|	-v		    Vi mode, start ex in Normal mode
   1227 |-e|	-e		    Ex mode, start vim in Ex mode
   1228 |-R|	-R		    Read-only mode, implies -n
   1229 |-m|	-m		    modifications not allowed (resets 'write' option)
   1230 |-d|	-d		    diff mode |diff|
   1231 |-b|	-b		    binary mode
   1232 |-l|	-l		    lisp mode
   1233 |-A|	-A		    Arabic mode ('arabic' is set)
   1234 |-F|	-F		    Farsi mode ('fkmap' and 'rightleft' are set)
   1235 |-H|	-H		    Hebrew mode ('hkmap' and 'rightleft' are set)
   1236 |-V|	-V		    Verbose, give informative messages
   1237 |-C|	-C		    Compatible, set the 'compatible' option
   1238 |-N|	-N		    Nocompatible, reset the 'compatible' option
   1239 |-r|	-r		    give list of swap files
   1240 |-r|	-r {file} ..	    recover aborted edit session
   1241 |-n|	-n		    do not create a swap file
   1242 |-o|	-o [num]	    open [num] windows (default: one for each file)
   1243 |-f|	-f		    GUI: foreground process, don't fork
   1244 			    Amiga: do not restart Vim to open a window (for
   1245 				e.g., mail)
   1246 |-s|	-s {scriptin}	    first read commands from the file {scriptin}
   1247 |-w|	-w {scriptout}	    write typed chars to file {scriptout} (append)
   1248 |-W|	-W {scriptout}	    write typed chars to file {scriptout} (overwrite)
   1249 |-T|	-T {terminal}	    set terminal name
   1250 |-d|	-d {device}	    Amiga: open {device} to be used as a console
   1251 |-u|	-u {vimrc}	    read inits from {vimrc} instead of other inits
   1252 |-U|	-U {gvimrc}	    idem, for when starting the GUI
   1253 |-i|	-i {viminfo}	    read info from {viminfo} instead of other files
   1254 |---|	--		    end of options, other arguments are file names
   1255 |--help|    --help	    show list of arguments and exit
   1256 |--version| --version	    show version info and exit
   1257 |--|	-		    read file from stdin
   1258 ------------------------------------------------------------------------------
   1259 *Q_ed*		Editing a file
   1260 
   1261 	   Without !: Fail if changes have been made to the current buffer.
   1262 	      With !: Discard any changes to the current buffer.
   1263 |:edit_f|  :e[dit][!] {file}	edit {file}
   1264 |:edit|    :e[dit][!]		reload the current file
   1265 |:enew|    :ene[w][!]		edit a new, unnamed buffer
   1266 |:find|    :fin[d][!] {file}	find {file} in 'path' and edit it
   1267 
   1268 |CTRL-^|   N  CTRL-^		edit alternate file N (equivalent to ":e #N")
   1269 |gf|          gf  or ]f		edit the file whose name is under the cursor
   1270 |:pwd|     :pwd			print the current directory name
   1271 |:cd|      :cd [path]		change the current directory to [path]
   1272 |:cd-|     :cd -		back to previous current directory
   1273 |:file|    :f[ile]		print the current file name and the cursor
   1274 				   position
   1275 |:file|    :f[ile] {name}	set the current file name to {name}
   1276 |:files|   :files		show alternate file names
   1277 ------------------------------------------------------------------------------
   1278 *Q_fl*		Using the argument list			|argument-list|
   1279 
   1280 |:args|	   :ar[gs]		print the argument list, with the current file
   1281 				   in "[]"
   1282 |:all|	   :all  or :sall	open a window for every file in the arg list
   1283 |:wn|	   :wn[ext][!]		write file and edit next file
   1284 |:wn|	   :wn[ext][!] {file}	write to {file} and edit next file, unless
   1285 				   {file} exists; With !, overwrite existing
   1286 				   file
   1287 |:wN|	   :wN[ext][!] [file]	write file and edit previous file
   1288 
   1289 	     in current window    in new window	~
   1290 |:argument|  :argu[ment] N	  :sar[gument] N	edit file N
   1291 |:next|      :n[ext]		  :sn[ext]		edit next file
   1292 |:next_f|    :n[ext] {arglist}	  :sn[ext] {arglist}	define new arg list
   1293 							   and edit first file
   1294 |:Next|      :N[ext]		  :sN[ext]		edit previous file
   1295 |:first|     :fir[st]		  :sfir[st]		edit first file
   1296 |:last|      :la[st]		  :sla[st]		edit last file
   1297 ------------------------------------------------------------------------------
   1298 *Q_wq*		Writing and quitting
   1299 
   1300 |:w|	  :[range]w[rite][!]		write to the current file
   1301 |:w_f|	  :[range]w[rite] {file}	write to {file}, unless it already
   1302 					   exists
   1303 |:w_f|	  :[range]w[rite]! {file}	write to {file}.  Overwrite an existing
   1304 					   file
   1305 |:w_a|	  :[range]w[rite][!] >>		append to the current file
   1306 |:w_a|	  :[range]w[rite][!] >> {file}	append to {file}
   1307 |:w_c|	  :[range]w[rite] !{cmd}	execute {cmd} with [range] lines as
   1308 					   standard input
   1309 |:up|	  :[range]up[date][!]		write to current file if modified
   1310 |:wall|	  :wa[ll][!]			write all changed buffers
   1311 
   1312 |:q|	  :q[uit]		quit current buffer, unless changes have been
   1313 				   made; Exit Vim when there are no other
   1314 				   non-help buffers
   1315 |:q|	  :q[uit]!		quit current buffer always, discard any
   1316 				   changes.  Exit Vim when there are no other
   1317 				   non-help buffers
   1318 |:qa|	  :qa[ll]		exit Vim, unless changes have been made
   1319 |:qa|	  :qa[ll]!		exit Vim always, discard any changes
   1320 |:cq|	  :cq			quit without writing and return error code
   1321 
   1322 |:wq|	  :wq[!]		write the current file and exit
   1323 |:wq|	  :wq[!] {file}		write to {file} and exit
   1324 |:xit|	  :x[it][!] [file]	like ":wq" but write only when changes have
   1325 				   been made
   1326 |ZZ|	     ZZ			same as ":x"
   1327 |ZQ|	     ZQ			same as ":q!"
   1328 |:xall|	  :xa[ll][!]  or :wqall[!]
   1329 				write all changed buffers and exit
   1330 
   1331 |:stop|	  :st[op][!]		suspend Vim or start new shell; if 'aw' option
   1332 				   is set and [!] not given write the buffer
   1333 |CTRL-Z|     CTRL-Z		same as ":stop"
   1334 ------------------------------------------------------------------------------
   1335 *Q_ac*		Automatic Commands
   1336 
   1337 |viminfo-file|	read registers, marks, history at startup, save when exiting.
   1338 
   1339 |:rviminfo|	:rv[iminfo] [file]	read info from viminfo file [file]
   1340 |:rviminfo|	:rv[iminfo]! [file]	idem, overwrite existing info
   1341 |:wviminfo|	:wv[iminfo] [file]	add info to viminfo file [file]
   1342 |:wviminfo|	:wv[iminfo]! [file]	write info to viminfo file [file]
   1343 
   1344 |modeline|	Automatic option setting when editing a file
   1345 
   1346 |modeline|	vim:{set-arg}: ..	In the first and last lines of the
   1347 					file (see 'ml' option), {set-arg} is
   1348 					given as an argument to ":set"
   1349 
   1350 |autocommand|	Automatic execution of commands on certain events.
   1351 
   1352 |:autocmd|	:au			  list all autocommands
   1353 |:autocmd|	:au {event}		  list all autocommands for {event}
   1354 |:autocmd|	:au {event} {pat}	  list all autocommands for {event}
   1355 					  with {pat}
   1356 |:autocmd|	:au {event} {pat} {cmd}	  enter new autocommands for {event}
   1357 					  with {pat}
   1358 |:autocmd|	:au!			  remove all autocommands
   1359 |:autocmd|	:au! {event}		  remove all autocommands for {event}
   1360 |:autocmd|	:au! * {pat}		  remove all autocommands for {pat}
   1361 |:autocmd|	:au! {event} {pat}	  remove all autocommands for {event}
   1362 					  with {pat}
   1363 |:autocmd|	:au! {event} {pat} {cmd}  remove all autocommands for {event}
   1364 					  with {pat} and enter new one
   1365 ------------------------------------------------------------------------------
   1366 *Q_wi*		Multi-window commands
   1367 
   1368 |CTRL-W_s|	CTRL-W s  or  :split	split window into two parts
   1369 |:split_f|	:split {file}		split window and edit {file} in one of
   1370 					   them
   1371 |:vsplit|	:vsplit {file}		same, but split vertically
   1372 |:vertical|	:vertical {cmd}		make {cmd} split vertically
   1373 
   1374 |:sfind|	:sf[ind] {file}		split window, find {file} in 'path'
   1375 					   and edit it
   1376 |:terminal|	:terminal {cmd}		open a terminal window
   1377 |CTRL-W_]|	CTRL-W ]		split window and jump to tag under
   1378 					   cursor
   1379 |CTRL-W_f|	CTRL-W f		split window and edit file name under
   1380 					   the cursor
   1381 |CTRL-W_^|	CTRL-W ^		split window and edit alternate file
   1382 |CTRL-W_n|	CTRL-W n  or  :new	create new empty window
   1383 |CTRL-W_q|	CTRL-W q  or  :q[uit]	quit editing and close window
   1384 |CTRL-W_c|	CTRL-W c  or  :clo[se]	make buffer hidden and close window
   1385 |CTRL-W_o|	CTRL-W o  or  :on[ly]	make current window only one on the
   1386 					   screen
   1387 
   1388 |CTRL-W_j|	CTRL-W j		move cursor to window below
   1389 |CTRL-W_k|	CTRL-W k		move cursor to window above
   1390 |CTRL-W_CTRL-W|	CTRL-W CTRL-W		move cursor to window below (wrap)
   1391 |CTRL-W_W|	CTRL-W W		move cursor to window above (wrap)
   1392 |CTRL-W_t|	CTRL-W t		move cursor to top window
   1393 |CTRL-W_b|	CTRL-W b		move cursor to bottom window
   1394 |CTRL-W_p|	CTRL-W p		move cursor to previous active window
   1395 
   1396 |CTRL-W_r|	CTRL-W r		rotate windows downwards
   1397 |CTRL-W_R|	CTRL-W R		rotate windows upwards
   1398 |CTRL-W_x|	CTRL-W x		exchange current window with next one
   1399 
   1400 |CTRL-W_=|	CTRL-W =		make all windows equal height & width
   1401 |CTRL-W_-|	CTRL-W -		decrease current window height
   1402 |CTRL-W_+|	CTRL-W +		increase current window height
   1403 |CTRL-W__|	CTRL-W _		set current window height (default:
   1404 					   very high)
   1405 
   1406 |CTRL-W_<|	CTRL-W <		decrease current window width
   1407 |CTRL-W_>|	CTRL-W >		increase current window width
   1408 |CTRL-W_bar|	CTRL-W |		set current window width (default:
   1409 					   widest possible)
   1410 ------------------------------------------------------------------------------
   1411 *Q_bu*		Buffer list commands
   1412 
   1413 |:buffers|	:buffers  or  :files	list all known buffer and file names
   1414 
   1415 |:ball|		:ball	  or  :sball	edit all args/buffers
   1416 |:unhide|	:unhide   or  :sunhide	edit all loaded buffers
   1417 
   1418 |:badd|		:badd {fname}		add file name {fname} to the list
   1419 |:bunload|	:bunload[!] [N]		unload buffer [N] from memory
   1420 |:bdelete|	:bdelete[!] [N]		unload buffer [N] and delete it from
   1421 					   the buffer list
   1422 
   1423 		in current window  in new window       ~
   1424 |:buffer|	:[N]buffer [N]     :[N]sbuffer [N]     to arg/buf N
   1425 |:bnext|	:[N]bnext [N]      :[N]sbnext [N]      to Nth next arg/buf
   1426 |:bNext|	:[N]bNext [N]      :[N]sbNext [N]      to Nth previous arg/buf
   1427 |:bprevious|	:[N]bprevious [N]  :[N]sbprevious [N]  to Nth previous arg/buf
   1428 |:bfirst|	:bfirst	           :sbfirst            to first arg/buf
   1429 |:blast|	:blast	           :sblast             to last arg/buf
   1430 |:bmodified|	:[N]bmod [N]       :[N]sbmod [N]       to Nth modified buf
   1431 ------------------------------------------------------------------------------
   1432 *Q_sy*		Syntax Highlighting
   1433 
   1434 |:syn-on|	:syntax on		start using syntax highlighting
   1435 |:syn-off|	:syntax off		stop using syntax highlighting
   1436 
   1437 |:syn-keyword|	:syntax keyword {group-name} {keyword} ..
   1438 					add a syntax keyword item
   1439 |:syn-match|	:syntax match {group-name} {pattern} ...
   1440 					add syntax match item
   1441 |:syn-region|	:syntax region {group-name} {pattern} ...
   1442 					add syntax region item
   1443 |:syn-sync|	:syntax sync [ccomment | lines {N} | ...]
   1444 					tell syntax how to sync
   1445 |:syntax|	:syntax [list]		list current syntax items
   1446 |:syn-clear|	:syntax clear		clear all syntax info
   1447 
   1448 |:highlight|	:highlight clear	clear all highlight info
   1449 |:highlight|	:highlight {group-name} {key}={arg} ..
   1450 					set highlighting for {group-name}
   1451 
   1452 |:filetype|	:filetype on		switch on file type detection, without
   1453 					syntax highlighting
   1454 |:filetype|	:filetype plugin indent on
   1455 					switch on file type detection, with
   1456 					automatic indenting and settings
   1457 ------------------------------------------------------------------------------
   1458 *Q_gu*		GUI commands
   1459 
   1460 |:gui|		:gui			UNIX: start the GUI
   1461 |:gui|		:gui {fname} ..		idem, and edit {fname} ..
   1462 
   1463 |:menu|		:menu			list all menus
   1464 |:menu|		:menu {mpath}		list menus starting with {mpath}
   1465 |:menu|		:menu {mpath} {rhs}	add menu {mpath}, giving {rhs}
   1466 |:menu|		:menu {pri} {mpath} {rhs}
   1467 					idem, with priorities {pri}
   1468 |:menu|		:menu ToolBar.{name} {rhs}
   1469 					add toolbar item, giving {rhs}
   1470 |:tmenu|	:tmenu {mpath} {text}	add tooltip to menu {mpath}
   1471 |:unmenu|	:unmenu {mpath}		remove menu {mpath}
   1472 ------------------------------------------------------------------------------
   1473 *Q_fo*		Folding
   1474 
   1475 'foldmethod'	set foldmethod=manual	manual folding
   1476 		set foldmethod=indent	folding by indent
   1477 		set foldmethod=expr	folding by 'foldexpr'
   1478 		set foldmethod=syntax	folding by syntax regions
   1479 		set foldmethod=marker	folding by 'foldmarker'
   1480 
   1481 |zf|		zf{motion}		operator: Define a fold manually
   1482 |:fold|		:{range}fold		define a fold for {range} lines
   1483 |zd|		zd			delete one fold under the cursor
   1484 |zD|		zD			delete all folds under the cursor
   1485 
   1486 |zo|		zo			open one fold under the cursor
   1487 |zO|		zO			open all folds under the cursor
   1488 |zc|		zc			close one fold under the cursor
   1489 |zC|		zC			close all folds under the cursor
   1490 
   1491 |zm|		zm			fold more: decrease 'foldlevel'
   1492 |zM|		zM			close all folds: make 'foldlevel' zero
   1493 |zr|		zr			reduce folding: increase 'foldlevel'
   1494 |zR|		zR			open all folds: make 'foldlevel' max.
   1495 
   1496 |zn|		zn			fold none: reset 'foldenable'
   1497 |zN|		zN			fold normal set 'foldenable'
   1498 |zi|		zi			invert 'foldenable'
   1499 
   1500  vim:tw=78:ts=8:noet:ft=help:norl: