index.txt 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716
  1. *index.txt* Nvim
  2. VIM REFERENCE MANUAL by Bram Moolenaar
  3. *index*
  4. This file contains a list of all commands for each mode, with a tag and a
  5. short description. The lists are sorted on ASCII value.
  6. Tip: When looking for certain functionality, use a search command. E.g.,
  7. to look for deleting something, use: "/delete".
  8. For an overview of options see |option-list|.
  9. For an overview of built-in functions see |functions|.
  10. For a list of Vim variables see |vim-variable|.
  11. Type |gO| to see the table of contents.
  12. ==============================================================================
  13. 1. Insert mode *insert-index*
  14. tag char action in Insert mode ~
  15. -----------------------------------------------------------------------
  16. |i_CTRL-@| CTRL-@ insert previously inserted text and stop
  17. insert
  18. |i_CTRL-A| CTRL-A insert previously inserted text
  19. |i_CTRL-C| CTRL-C quit insert mode, without checking for
  20. abbreviation
  21. |i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current
  22. line
  23. |i_CTRL-E| CTRL-E insert the character which is below the cursor
  24. CTRL-F not used (but by default it's in 'cinkeys' to
  25. re-indent the current line)
  26. |i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started
  27. |i_CTRL-G_j| CTRL-G j line down, to column where inserting started
  28. |i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started
  29. |i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started
  30. |i_CTRL-G_k| CTRL-G k line up, to column where inserting started
  31. |i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
  32. |i_CTRL-G_u| CTRL-G u start new undoable edit
  33. |i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement
  34. |i_<BS>| <BS> delete character before the cursor
  35. |i_digraph| {char1}<BS>{char2}
  36. enter digraph (only when 'digraph' option set)
  37. |i_CTRL-H| CTRL-H same as <BS>
  38. |i_<Tab>| <Tab> insert a <Tab> character
  39. |i_CTRL-I| CTRL-I same as <Tab>
  40. |i_<NL>| <NL> same as <CR>
  41. |i_CTRL-J| CTRL-J same as <CR>
  42. |i_CTRL-K| CTRL-K {char1} {char2}
  43. enter digraph
  44. |i_<CR>| <CR> begin new line
  45. |i_CTRL-M| CTRL-M same as <CR>
  46. |i_CTRL-N| CTRL-N find next match for keyword in front of the
  47. cursor
  48. |i_CTRL-O| CTRL-O execute a single command and return to insert
  49. mode
  50. |i_CTRL-P| CTRL-P find previous match for keyword in front of
  51. the cursor
  52. |i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
  53. control flow
  54. |i_CTRL-SHIFT-Q| CTRL-SHIFT-Q {char}
  55. like CTRL-Q unless |tui-modifyOtherKeys| is active
  56. |i_CTRL-R| CTRL-R {register}
  57. insert the contents of a register
  58. |i_CTRL-R_CTRL-R| CTRL-R CTRL-R {register}
  59. insert the contents of a register literally
  60. |i_CTRL-R_CTRL-O| CTRL-R CTRL-O {register}
  61. insert the contents of a register literally
  62. and don't auto-indent
  63. |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {register}
  64. insert the contents of a register literally
  65. and fix indent.
  66. CTRL-S not used or used for terminal control flow
  67. |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
  68. line
  69. |i_CTRL-U| CTRL-U delete all entered characters in the current
  70. line
  71. |i_CTRL-V| CTRL-V {char} insert next non-digit literally
  72. |i_CTRL-SHIFT-V| CTRL-SHIFT-V {char}
  73. like CTRL-V unless |tui-modifyOtherKeys| is active
  74. |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
  75. byte.
  76. |i_CTRL-W| CTRL-W delete word before the cursor
  77. |i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index|
  78. |i_CTRL-Y| CTRL-Y insert the character which is above the cursor
  79. |i_<Esc>| <Esc> end insert mode
  80. |i_CTRL-[| CTRL-[ same as <Esc>
  81. |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
  82. |i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to Normal mode
  83. CTRL-\ a - z reserved for extensions
  84. CTRL-\ others not used
  85. |i_CTRL-]| CTRL-] trigger abbreviation
  86. |i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
  87. |i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
  88. (Hebrew)
  89. <Space> to '~' not used, except '0' and '^' followed by
  90. CTRL-D
  91. |i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
  92. |i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
  93. it in the next line
  94. |i_<Del>| <Del> delete character under the cursor
  95. Meta characters (0x80 to 0xff, 128 to 255)
  96. not used
  97. |i_<Left>| <Left> cursor one character left
  98. |i_<S-Left>| <S-Left> cursor one word left
  99. |i_<C-Left>| <C-Left> cursor one word left
  100. |i_<Right>| <Right> cursor one character right
  101. |i_<S-Right>| <S-Right> cursor one word right
  102. |i_<C-Right>| <C-Right> cursor one word right
  103. |i_<Up>| <Up> cursor one line up
  104. |i_<S-Up>| <S-Up> same as <PageUp>
  105. |i_<Down>| <Down> cursor one line down
  106. |i_<S-Down>| <S-Down> same as <PageDown>
  107. |i_<Home>| <Home> cursor to start of line
  108. |i_<C-Home>| <C-Home> cursor to start of file
  109. |i_<End>| <End> cursor past end of line
  110. |i_<C-End>| <C-End> cursor past end of file
  111. |i_<PageUp>| <PageUp> one screenful backward
  112. |i_<PageDown>| <PageDown> one screenful forward
  113. |i_<F1>| <F1> same as <Help>
  114. |i_<Help>| <Help> stop insert mode and display help window
  115. |i_<Insert>| <Insert> toggle Insert/Replace mode
  116. |i_<LeftMouse>| <LeftMouse> cursor at mouse click
  117. |i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
  118. |i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
  119. |i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
  120. |i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
  121. |i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
  122. |i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
  123. |i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
  124. |i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
  125. commands in CTRL-X submode *i_CTRL-X_index*
  126. |i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
  127. |i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
  128. |i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
  129. |i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
  130. |i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
  131. |i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
  132. |i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
  133. |i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion
  134. |i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
  135. |i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
  136. |i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
  137. |i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
  138. |i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
  139. |i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
  140. |i_CTRL-X_CTRL-Z| CTRL-X CTRL-Z stop completion, keeping the text as-is
  141. |i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
  142. |i_CTRL-X_s| CTRL-X s spelling suggestions
  143. commands in completion mode (see |popupmenu-keys|)
  144. |complete_CTRL-E| CTRL-E stop completion and go back to original text
  145. |complete_CTRL-Y| CTRL-Y accept selected match and stop completion
  146. CTRL-L insert one character from the current match
  147. <CR> insert currently selected match
  148. <BS> delete one character and redo search
  149. CTRL-H same as <BS>
  150. <Up> select the previous match
  151. <Down> select the next match
  152. <PageUp> select a match several entries back
  153. <PageDown> select a match several entries forward
  154. other stop completion and insert the typed character
  155. ==============================================================================
  156. 2. Normal mode *normal-index*
  157. CHAR any non-blank character
  158. WORD a sequence of non-blank characters
  159. N a number entered before the command
  160. {motion} a cursor movement command
  161. Nmove the text that is moved over with a {motion}
  162. SECTION a section that possibly starts with '}' instead of '{'
  163. note: 1 = cursor movement command; 2 = can be undone/redone
  164. tag char note action in Normal mode ~
  165. ------------------------------------------------------------------------------
  166. CTRL-@ not used
  167. |CTRL-A| CTRL-A 2 add N to number at/after cursor
  168. |CTRL-B| CTRL-B 1 scroll N screens Backwards
  169. |CTRL-C| CTRL-C interrupt current (search) command
  170. |CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
  171. |CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
  172. |CTRL-F| CTRL-F 1 scroll N screens Forward
  173. |CTRL-G| CTRL-G display current file name and position
  174. |<BS>| <BS> 1 same as "h"
  175. |CTRL-H| CTRL-H 1 same as "h"
  176. |<Tab>| <Tab> 1 go to N newer entry in jump list
  177. |CTRL-I| CTRL-I 1 same as <Tab>
  178. |<NL>| <NL> 1 same as "j"
  179. |CTRL-J| CTRL-J 1 same as "j"
  180. CTRL-K not used
  181. |CTRL-L| CTRL-L redraw screen
  182. |<CR>| <CR> 1 cursor to the first CHAR N lines lower
  183. |CTRL-M| CTRL-M 1 same as <CR>
  184. |CTRL-N| CTRL-N 1 same as "j"
  185. |CTRL-O| CTRL-O 1 go to N older entry in jump list
  186. |CTRL-P| CTRL-P 1 same as "k"
  187. CTRL-Q not used, or used for terminal control flow
  188. |CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
  189. CTRL-S not used, or used for terminal control flow
  190. |CTRL-T| CTRL-T jump to N older Tag in tag list
  191. |CTRL-U| CTRL-U scroll N lines Upwards (default: half a
  192. screen)
  193. |CTRL-V| CTRL-V start blockwise Visual mode
  194. |CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
  195. |CTRL-X| CTRL-X 2 subtract N from number at/after cursor
  196. |CTRL-Y| CTRL-Y scroll N lines downwards
  197. |CTRL-Z| CTRL-Z suspend program (or start new shell)
  198. CTRL-[ <Esc> not used
  199. |CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
  200. |CTRL-\_CTRL-G| CTRL-\ CTRL-G go to Normal mode (no-op)
  201. CTRL-\ a - z reserved for extensions
  202. CTRL-\ others not used
  203. |CTRL-]| CTRL-] :ta to ident under cursor
  204. |CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
  205. ":e #N")
  206. |CTRL-<Tab>| CTRL-<Tab> same as `g<Tab>` : go to last accessed tab
  207. page
  208. CTRL-_ not used
  209. |<Space>| <Space> 1 same as "l"
  210. |!| !{motion}{filter}
  211. 2 filter Nmove text through the {filter}
  212. command
  213. |!!| !!{filter} 2 filter N lines through the {filter} command
  214. |quote| "{register} use {register} for next delete, yank or put
  215. ({.%#:} only work with put)
  216. |#| # 1 search backward for the Nth occurrence of
  217. the ident under the cursor
  218. |$| $ 1 cursor to the end of Nth next line
  219. |%| % 1 find the next (curly/square) bracket on
  220. this line and go to its match, or go to
  221. matching comment bracket, or go to matching
  222. preprocessor directive.
  223. |N%| {count}% 1 go to N percentage in the file
  224. |&| & 2 repeat last :s
  225. |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
  226. mark {a-zA-Z0-9}
  227. |''| '' 1 cursor to the first CHAR of the line where
  228. the cursor was before the latest jump.
  229. |'(| '( 1 cursor to the first CHAR on the line of the
  230. start of the current sentence
  231. |')| ') 1 cursor to the first CHAR on the line of the
  232. end of the current sentence
  233. |'<| '< 1 cursor to the first CHAR of the line where
  234. highlighted area starts/started in the
  235. current buffer.
  236. |'>| '> 1 cursor to the first CHAR of the line where
  237. highlighted area ends/ended in the current
  238. buffer.
  239. |'[| '[ 1 cursor to the first CHAR on the line of the
  240. start of last operated text or start of put
  241. text
  242. |']| '] 1 cursor to the first CHAR on the line of the
  243. end of last operated text or end of put
  244. text
  245. |'{| '{ 1 cursor to the first CHAR on the line of the
  246. start of the current paragraph
  247. |'}| '} 1 cursor to the first CHAR on the line of the
  248. end of the current paragraph
  249. |(| ( 1 cursor N sentences backward
  250. |)| ) 1 cursor N sentences forward
  251. |star| * 1 search forward for the Nth occurrence of
  252. the ident under the cursor
  253. |+| + 1 same as <CR>
  254. |,| , 1 repeat latest f, t, F or T in opposite
  255. direction N times
  256. |-| - 1 cursor to the first CHAR N lines higher
  257. |.| . 2 repeat last change with count replaced with
  258. N
  259. |/| /{pattern}<CR> 1 search forward for the Nth occurrence of
  260. {pattern}
  261. |/<CR>| /<CR> 1 search forward for {pattern} of last search
  262. |0| 0 1 cursor to the first char of the line
  263. |count| 1 prepend to command to give a count
  264. |count| 2 "
  265. |count| 3 "
  266. |count| 4 "
  267. |count| 5 "
  268. |count| 6 "
  269. |count| 7 "
  270. |count| 8 "
  271. |count| 9 "
  272. |:| : 1 start entering an Ex command
  273. |N:| {count}: start entering an Ex command with range
  274. from current line to N-1 lines down
  275. |;| ; 1 repeat latest f, t, F or T N times
  276. |<| <{motion} 2 shift Nmove lines one 'shiftwidth'
  277. leftwards
  278. |<<| << 2 shift N lines one 'shiftwidth' leftwards
  279. |=| ={motion} 2 filter Nmove lines through "indent"
  280. |==| == 2 filter N lines through "indent"
  281. |>| >{motion} 2 shift Nmove lines one 'shiftwidth'
  282. rightwards
  283. |>>| >> 2 shift N lines one 'shiftwidth' rightwards
  284. |?| ?{pattern}<CR> 1 search backward for the Nth previous
  285. occurrence of {pattern}
  286. |?<CR>| ?<CR> 1 search backward for {pattern} of last search
  287. |@| @{a-z} 2 execute the contents of register {a-z}
  288. N times
  289. |@:| @: repeat the previous ":" command N times
  290. |@@| @@ 2 repeat the previous @{a-z} N times
  291. |A| A 2 append text after the end of the line N times
  292. |B| B 1 cursor N WORDS backward
  293. |C| ["x]C 2 change from the cursor position to the end
  294. of the line, and N-1 more lines [into
  295. register x]; synonym for "c$"
  296. |D| ["x]D 2 delete the characters under the cursor
  297. until the end of the line and N-1 more
  298. lines [into register x]; synonym for "d$"
  299. |E| E 1 cursor forward to the end of WORD N
  300. |F| F{char} 1 cursor to the Nth occurrence of {char} to
  301. the left
  302. |G| G 1 cursor to line N, default last line
  303. |H| H 1 cursor to line N from top of screen
  304. |I| I 2 insert text before the first CHAR on the
  305. line N times
  306. |J| J 2 Join N lines; default is 2
  307. |K| K lookup Keyword under the cursor with
  308. 'keywordprg'
  309. |L| L 1 cursor to line N from bottom of screen
  310. |M| M 1 cursor to middle line of screen
  311. |N| N 1 repeat the latest '/' or '?' N times in
  312. opposite direction
  313. |O| O 2 begin a new line above the cursor and
  314. insert text, repeat N times
  315. |P| ["x]P 2 put the text [from register x] before the
  316. cursor N times
  317. |R| R 2 enter replace mode: overtype existing
  318. characters, repeat the entered text N-1
  319. times
  320. |S| ["x]S 2 delete N lines [into register x] and start
  321. insert; synonym for "cc".
  322. |T| T{char} 1 cursor till after Nth occurrence of {char}
  323. to the left
  324. |U| U 2 undo all latest changes on one line
  325. |V| V start linewise Visual mode
  326. |W| W 1 cursor N WORDS forward
  327. |X| ["x]X 2 delete N characters before the cursor [into
  328. register x]
  329. |Y| ["x]Y yank N lines [into register x]; synonym for
  330. "yy"
  331. Note: Mapped to "y$" by default. |default-mappings|
  332. |ZZ| ZZ write if buffer changed and close window
  333. |ZQ| ZQ close window without writing
  334. |[| [{char} square bracket command (see |[| below)
  335. \ not used
  336. |]| ]{char} square bracket command (see |]| below)
  337. |^| ^ 1 cursor to the first CHAR of the line
  338. |_| _ 1 cursor to the first CHAR N - 1 lines lower
  339. |`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
  340. |`(| `( 1 cursor to the start of the current sentence
  341. |`)| `) 1 cursor to the end of the current sentence
  342. |`<| `< 1 cursor to the start of the highlighted area
  343. |`>| `> 1 cursor to the end of the highlighted area
  344. |`[| `[ 1 cursor to the start of last operated text
  345. or start of putted text
  346. |`]| `] 1 cursor to the end of last operated text or
  347. end of putted text
  348. |``| `` 1 cursor to the position before latest jump
  349. |`{| `{ 1 cursor to the start of the current paragraph
  350. |`}| `} 1 cursor to the end of the current paragraph
  351. |a| a 2 append text after the cursor N times
  352. |b| b 1 cursor N words backward
  353. |c| ["x]c{motion} 2 delete Nmove text [into register x] and
  354. start insert
  355. |cc| ["x]cc 2 delete N lines [into register x] and start
  356. insert
  357. |d| ["x]d{motion} 2 delete Nmove text [into register x]
  358. |dd| ["x]dd 2 delete N lines [into register x]
  359. |do| do 2 same as ":diffget"
  360. |dp| dp 2 same as ":diffput"
  361. |e| e 1 cursor forward to the end of word N
  362. |f| f{char} 1 cursor to Nth occurrence of {char} to the
  363. right
  364. |g| g{char} extended commands, see |g| below
  365. |h| h 1 cursor N chars to the left
  366. |i| i 2 insert text before the cursor N times
  367. |j| j 1 cursor N lines downward
  368. |k| k 1 cursor N lines upward
  369. |l| l 1 cursor N chars to the right
  370. |m| m{A-Za-z} set mark {A-Za-z} at cursor position
  371. |n| n 1 repeat the latest '/' or '?' N times
  372. |o| o 2 begin a new line below the cursor and
  373. insert text, repeat N times
  374. |p| ["x]p 2 put the text [from register x] after the
  375. cursor N times
  376. |q| q{0-9a-zA-Z"} record typed characters into named register
  377. {0-9a-zA-Z"} (uppercase to append)
  378. |q| q (while recording) stops recording
  379. |Q| Q replay last recorded macro
  380. |q:| q: edit : command-line in command-line window
  381. |q/| q/ edit / command-line in command-line window
  382. |q?| q? edit ? command-line in command-line window
  383. |r| r{char} 2 replace N chars with {char}
  384. |s| ["x]s 2 (substitute) delete N characters [into
  385. register x] and start insert
  386. |t| t{char} 1 cursor till before Nth occurrence of {char}
  387. to the right
  388. |u| u 2 undo changes
  389. |v| v start charwise Visual mode
  390. |w| w 1 cursor N words forward
  391. |x| ["x]x 2 delete N characters under and after the
  392. cursor [into register x]
  393. |y| ["x]y{motion} yank Nmove text [into register x]
  394. |yy| ["x]yy yank N lines [into register x]
  395. |z| z{char} commands starting with 'z', see |z| below
  396. |{| { 1 cursor N paragraphs backward
  397. |bar| | 1 cursor to column N
  398. |}| } 1 cursor N paragraphs forward
  399. |~| ~ 2 'tildeop' off: switch case of N characters
  400. under cursor and move the cursor N
  401. characters to the right
  402. |~| ~{motion} 'tildeop' on: switch case of Nmove text
  403. |<C-End>| <C-End> 1 same as "G"
  404. |<C-Home>| <C-Home> 1 same as "gg"
  405. |<C-Left>| <C-Left> 1 same as "b"
  406. |<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
  407. |<C-Right>| <C-Right> 1 same as "w"
  408. |<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
  409. |<C-Tab>| <C-Tab> same as "g<Tab>"
  410. |<Del>| ["x]<Del> 2 same as "x"
  411. |N<Del>| {count}<Del> remove the last digit from {count}
  412. |<Down>| <Down> 1 same as "j"
  413. |<End>| <End> 1 same as "$"
  414. |<F1>| <F1> same as <Help>
  415. |<Help>| <Help> open a help window
  416. |<Home>| <Home> 1 same as "0"
  417. |<Insert>| <Insert> 2 same as "i"
  418. |<Left>| <Left> 1 same as "h"
  419. |<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
  420. |<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
  421. |<PageDown>| <PageDown> same as CTRL-F
  422. |<PageUp>| <PageUp> same as CTRL-B
  423. |<Right>| <Right> 1 same as "l"
  424. |<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
  425. click position
  426. |<S-Down>| <S-Down> 1 same as CTRL-F
  427. |<S-Left>| <S-Left> 1 same as "b"
  428. |<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
  429. |<S-Right>| <S-Right> 1 same as "w"
  430. |<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
  431. |<S-Up>| <S-Up> 1 same as CTRL-B
  432. |<Undo>| <Undo> 2 same as "u"
  433. |<Up>| <Up> 1 same as "k"
  434. *<ScrollWheelDown>* <ScrollWheelDown> move window three lines down
  435. *<S-ScrollWheelDown>* <S-ScrollWheelDown> move window one page down
  436. *<ScrollWheelUp>* <ScrollWheelUp> move window three lines up
  437. *<S-ScrollWheelUp>* <S-ScrollWheelUp> move window one page up
  438. *<ScrollWheelLeft>* <ScrollWheelLeft> move window six columns left
  439. *<S-ScrollWheelLeft>* <S-ScrollWheelLeft> move window one page left
  440. *<ScrollWheelRight>* <ScrollWheelRight> move window six columns right
  441. *<S-ScrollWheelRight>* <S-ScrollWheelRight> move window one page right
  442. ==============================================================================
  443. 2.1 Text objects *objects*
  444. These can be used after an operator or in Visual mode to select an object.
  445. tag command action in op-pending and Visual mode ~
  446. ------------------------------------------------------------------------------
  447. |v_aquote| a" double quoted string
  448. |v_a'| a' single quoted string
  449. |v_a(| a( same as ab
  450. |v_a)| a) same as ab
  451. |v_a<| a< "a <>" from '<' to the matching '>'
  452. |v_a>| a> same as a<
  453. |v_aB| aB "a Block" from "[{" to "]}" (with brackets)
  454. |v_aW| aW "a WORD" (with white space)
  455. |v_a[| a[ "a []" from '[' to the matching ']'
  456. |v_a]| a] same as a[
  457. |v_a`| a` string in backticks
  458. |v_ab| ab "a block" from "[(" to "])" (with braces)
  459. |v_ap| ap "a paragraph" (with white space)
  460. |v_as| as "a sentence" (with white space)
  461. |v_at| at "a tag block" (with white space)
  462. |v_aw| aw "a word" (with white space)
  463. |v_a{| a{ same as aB
  464. |v_a}| a} same as aB
  465. |v_iquote| i" double quoted string without the quotes
  466. |v_i'| i' single quoted string without the quotes
  467. |v_i(| i( same as ib
  468. |v_i)| i) same as ib
  469. |v_i<| i< "inner <>" from '<' to the matching '>'
  470. |v_i>| i> same as i<
  471. |v_iB| iB "inner Block" from "[{" and "]}"
  472. |v_iW| iW "inner WORD"
  473. |v_i[| i[ "inner []" from '[' to the matching ']'
  474. |v_i]| i] same as i[
  475. |v_i`| i` string in backticks without the backticks
  476. |v_ib| ib "inner block" from "[(" to "])"
  477. |v_ip| ip "inner paragraph"
  478. |v_is| is "inner sentence"
  479. |v_it| it "inner tag block"
  480. |v_iw| iw "inner word"
  481. |v_i{| i{ same as iB
  482. |v_i}| i} same as iB
  483. ==============================================================================
  484. 2.2 Window commands *CTRL-W*
  485. tag command action in Normal mode ~
  486. ------------------------------------------------------------------------------
  487. |CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
  488. |CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
  489. |CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
  490. |CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
  491. CTRL-W CTRL-G same as "CTRL-W g .."
  492. |CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
  493. |CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
  494. |CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
  495. |CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
  496. |CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
  497. |CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
  498. |CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
  499. |CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
  500. |CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
  501. |CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
  502. |CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
  503. |CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
  504. |CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
  505. |CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
  506. |CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
  507. |CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
  508. |CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
  509. |CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
  510. |CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
  511. |CTRL-W_+| CTRL-W + increase current window height N lines
  512. |CTRL-W_-| CTRL-W - decrease current window height N lines
  513. |CTRL-W_<| CTRL-W < decrease current window width N columns
  514. |CTRL-W_=| CTRL-W = make all windows the same height & width
  515. |CTRL-W_>| CTRL-W > increase current window width N columns
  516. |CTRL-W_H| CTRL-W H move current window to the far left
  517. |CTRL-W_J| CTRL-W J move current window to the very bottom
  518. |CTRL-W_K| CTRL-W K move current window to the very top
  519. |CTRL-W_L| CTRL-W L move current window to the far right
  520. |CTRL-W_P| CTRL-W P go to preview window
  521. |CTRL-W_R| CTRL-W R rotate windows upwards N times
  522. |CTRL-W_S| CTRL-W S same as "CTRL-W s"
  523. |CTRL-W_T| CTRL-W T move current window to a new tab page
  524. |CTRL-W_W| CTRL-W W go to N previous window (wrap around)
  525. |CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
  526. |CTRL-W_^| CTRL-W ^ split current window and edit alternate
  527. file N
  528. |CTRL-W__| CTRL-W _ set current window height to N (default:
  529. very high)
  530. |CTRL-W_b| CTRL-W b go to bottom window
  531. |CTRL-W_c| CTRL-W c close current window (like |:close|)
  532. |CTRL-W_d| CTRL-W d split window and jump to definition under
  533. the cursor
  534. |CTRL-W_f| CTRL-W f split window and edit file name under the
  535. cursor
  536. |CTRL-W_F| CTRL-W F split window and edit file name under the
  537. cursor and jump to the line number
  538. following the file name.
  539. |CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
  540. cursor
  541. |CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
  542. under cursor
  543. |CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
  544. |CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
  545. tab page
  546. |CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new
  547. tab page and jump to the line number
  548. following the file name.
  549. |CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page
  550. |CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page
  551. |CTRL-W_g<Tab>| CTRL-W g <Tab> same as |g<Tab>|: go to last accessed tab
  552. page
  553. |CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
  554. |CTRL-W_i| CTRL-W i split window and jump to declaration of
  555. identifier under the cursor
  556. |CTRL-W_j| CTRL-W j go N windows down (stop at last window)
  557. |CTRL-W_k| CTRL-W k go N windows up (stop at first window)
  558. |CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
  559. |CTRL-W_n| CTRL-W n open new window, N lines high
  560. |CTRL-W_o| CTRL-W o close all but current window (like |:only|)
  561. |CTRL-W_p| CTRL-W p go to previous (last accessed) window
  562. |CTRL-W_q| CTRL-W q quit current window (like |:quit|)
  563. |CTRL-W_r| CTRL-W r rotate windows downwards N times
  564. |CTRL-W_s| CTRL-W s split current window in two parts, new
  565. window N lines high
  566. |CTRL-W_t| CTRL-W t go to top window
  567. |CTRL-W_v| CTRL-W v split current window vertically, new window
  568. N columns wide
  569. |CTRL-W_w| CTRL-W w go to N next window (wrap around)
  570. |CTRL-W_x| CTRL-W x exchange current window with window N
  571. (default: next window)
  572. |CTRL-W_z| CTRL-W z close preview window
  573. |CTRL-W_bar| CTRL-W | set window width to N columns
  574. |CTRL-W_}| CTRL-W } show tag under cursor in preview window
  575. |CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
  576. |CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
  577. |CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
  578. |CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
  579. ==============================================================================
  580. 2.3 Square bracket commands *[* *]*
  581. tag char note action in Normal mode ~
  582. ------------------------------------------------------------------------------
  583. |[_CTRL-D| [ CTRL-D jump to first #define found in current and
  584. included files matching the word under the
  585. cursor, start searching at beginning of
  586. current file
  587. |[_CTRL-I| [ CTRL-I jump to first line in current and included
  588. files that contains the word under the
  589. cursor, start searching at beginning of
  590. current file
  591. |[#| [# 1 cursor to N previous unmatched #if, #else
  592. or #ifdef
  593. |['| [' 1 cursor to previous lowercase mark, on first
  594. non-blank
  595. |[(| [( 1 cursor N times back to unmatched '('
  596. |[star| [* 1 same as "[/"
  597. |[`| [` 1 cursor to previous lowercase mark
  598. |[/| [/ 1 cursor to N previous start of a C comment
  599. |[D| [D list all defines found in current and
  600. included files matching the word under the
  601. cursor, start searching at beginning of
  602. current file
  603. |[I| [I list all lines found in current and
  604. included files that contain the word under
  605. the cursor, start searching at beginning of
  606. current file
  607. |[P| [P 2 same as "[p"
  608. |[[| [[ 1 cursor N sections backward
  609. |[]| [] 1 cursor N SECTIONS backward
  610. |[c| [c 1 cursor N times backwards to start of change
  611. |[d| [d show first #define found in current and
  612. included files matching the word under the
  613. cursor, start searching at beginning of
  614. current file
  615. |[f| [f same as "gf"
  616. |[i| [i show first line found in current and
  617. included files that contains the word under
  618. the cursor, start searching at beginning of
  619. current file
  620. |[m| [m 1 cursor N times back to start of member
  621. function
  622. |[p| [p 2 like "P", but adjust indent to current line
  623. |[s| [s 1 move to the previous misspelled word
  624. |[z| [z 1 move to start of open fold
  625. |[{| [{ 1 cursor N times back to unmatched '{'
  626. |[<MiddleMouse>| [<MiddleMouse> 2 same as "[p"
  627. |]_CTRL-D| ] CTRL-D jump to first #define found in current and
  628. included files matching the word under the
  629. cursor, start searching at cursor position
  630. |]_CTRL-I| ] CTRL-I jump to first line in current and included
  631. files that contains the word under the
  632. cursor, start searching at cursor position
  633. |]#| ]# 1 cursor to N next unmatched #endif or #else
  634. |]'| ]' 1 cursor to next lowercase mark, on first
  635. non-blank
  636. |])| ]) 1 cursor N times forward to unmatched ')'
  637. |]star| ]* 1 same as "]/"
  638. |]`| ]` 1 cursor to next lowercase mark
  639. |]/| ]/ 1 cursor to N next end of a C comment
  640. |]D| ]D list all #defines found in current and
  641. included files matching the word under the
  642. cursor, start searching at cursor position
  643. |]I| ]I list all lines found in current and
  644. included files that contain the word under
  645. the cursor, start searching at cursor
  646. position
  647. |]P| ]P 2 same as "[p"
  648. |][| ][ 1 cursor N SECTIONS forward
  649. |]]| ]] 1 cursor N sections forward
  650. |]c| ]c 1 cursor N times forward to start of change
  651. |]d| ]d show first #define found in current and
  652. included files matching the word under the
  653. cursor, start searching at cursor position
  654. |]f| ]f same as "gf"
  655. |]i| ]i show first line found in current and
  656. included files that contains the word under
  657. the cursor, start searching at cursor
  658. position
  659. |]m| ]m 1 cursor N times forward to end of member
  660. function
  661. |]p| ]p 2 like "p", but adjust indent to current line
  662. |]s| ]s 1 move to next misspelled word
  663. |]z| ]z 1 move to end of open fold
  664. |]}| ]} 1 cursor N times forward to unmatched '}'
  665. |]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p"
  666. ==============================================================================
  667. 2.4 Commands starting with 'g' *g*
  668. tag char note action in Normal mode ~
  669. ------------------------------------------------------------------------------
  670. g_CTRL-A g CTRL-A dump a memory profile
  671. |g_CTRL-G| g CTRL-G show information about current cursor
  672. position
  673. |g_CTRL-H| g CTRL-H start Select block mode
  674. |g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
  675. |g#| g# 1 like "#", but without using "\<" and "\>"
  676. |g$| g$ 1 when 'wrap' off go to rightmost character of
  677. the current line that is on the screen;
  678. when 'wrap' on go to the rightmost character
  679. of the current screen line
  680. |g&| g& 2 repeat last ":s" on all lines
  681. |g'| g'{mark} 1 like |'| but without changing the jumplist
  682. |g`| g`{mark} 1 like |`| but without changing the jumplist
  683. |gstar| g* 1 like "*", but without using "\<" and "\>"
  684. |g+| g+ go to newer text state N times
  685. |g,| g, 1 go to N newer position in change list
  686. |g-| g- go to older text state N times
  687. |g0| g0 1 when 'wrap' off go to leftmost character of
  688. the current line that is on the screen;
  689. when 'wrap' on go to the leftmost character
  690. of the current screen line
  691. |g8| g8 print hex value of bytes used in UTF-8
  692. character under the cursor
  693. |g;| g; 1 go to N older position in change list
  694. |g<| g< display previous command output
  695. |g?| g? 2 Rot13 encoding operator
  696. |g?g?| g?? 2 Rot13 encode current line
  697. |g?g?| g?g? 2 Rot13 encode current line
  698. |gD| gD 1 go to definition of word under the cursor
  699. in current file
  700. |gE| gE 1 go backwards to the end of the previous
  701. WORD
  702. |gH| gH start Select line mode
  703. |gI| gI 2 like "I", but always start in column 1
  704. |gJ| gJ 2 join lines without inserting space
  705. |gN| gN 1,2 find the previous match with the last used
  706. search pattern and Visually select it
  707. |gP| ["x]gP 2 put the text [from register x] before the
  708. cursor N times, leave the cursor after it
  709. |gQ| gQ switch to "Ex" mode with Vim editing
  710. |gR| gR 2 enter Virtual Replace mode
  711. |gT| gT go to the previous tab page
  712. |gU| gU{motion} 2 make Nmove text uppercase
  713. |gV| gV don't reselect the previous Visual area
  714. when executing a mapping or menu in Select
  715. mode
  716. |g]| g] :tselect on the tag under the cursor
  717. |g^| g^ 1 when 'wrap' off go to leftmost non-white
  718. character of the current line that is on
  719. the screen; when 'wrap' on go to the
  720. leftmost non-white character of the current
  721. screen line
  722. |g_| g_ 1 cursor to the last CHAR N - 1 lines lower
  723. |ga| ga print ascii value of character under the
  724. cursor
  725. |gd| gd 1 go to definition of word under the cursor
  726. in current function
  727. |ge| ge 1 go backwards to the end of the previous
  728. word
  729. |gf| gf start editing the file whose name is under
  730. the cursor
  731. |gF| gF start editing the file whose name is under
  732. the cursor and jump to the line number
  733. following the filename.
  734. |gg| gg 1 cursor to line N, default first line
  735. |gh| gh start Select mode
  736. |gi| gi 2 like "i", but first move to the |'^| mark
  737. |gj| gj 1 like "j", but when 'wrap' on go N screen
  738. lines down
  739. |gk| gk 1 like "k", but when 'wrap' on go N screen
  740. lines up
  741. |gm| gm 1 go to character at middle of the screenline
  742. |gM| gM 1 go to character at middle of the text line
  743. |gn| gn 1,2 find the next match with the last used
  744. search pattern and Visually select it
  745. |go| go 1 cursor to byte N in the buffer
  746. |gp| ["x]gp 2 put the text [from register x] after the
  747. cursor N times, leave the cursor after it
  748. |gq| gq{motion} 2 format Nmove text
  749. |gr| gr{char} 2 virtual replace N chars with {char}
  750. |gs| gs go to sleep for N seconds (default 1)
  751. |gt| gt go to the next tab page
  752. |gu| gu{motion} 2 make Nmove text lowercase
  753. |gv| gv reselect the previous Visual area
  754. |gw| gw{motion} 2 format Nmove text and keep cursor
  755. |netrw-gx| gx execute application for file name under the
  756. cursor (only with |netrw| plugin)
  757. |g@| g@{motion} call 'operatorfunc'
  758. |g~| g~{motion} 2 swap case for Nmove text
  759. |g<Down>| g<Down> 1 same as "gj"
  760. |g<End>| g<End> 1 same as "g$"
  761. |g<Home>| g<Home> 1 same as "g0"
  762. |g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
  763. g<MiddleMouse> same as <C-MiddleMouse>
  764. |g<RightMouse>| g<RightMouse> same as <C-RightMouse>
  765. |g<Tab>| g<Tab> go to last accessed tab page
  766. |g<Up>| g<Up> 1 same as "gk"
  767. ==============================================================================
  768. 2.5 Commands starting with 'z' *z*
  769. tag char note action in Normal mode ~
  770. ------------------------------------------------------------------------------
  771. |z<CR>| z<CR> redraw, cursor line to top of window,
  772. cursor on first non-blank
  773. |zN<CR>| z{height}<CR> redraw, make window {height} lines high
  774. |z+| z+ cursor on line N (default line below
  775. window), otherwise like "z<CR>"
  776. |z-| z- redraw, cursor line at bottom of window,
  777. cursor on first non-blank
  778. |z.| z. redraw, cursor line to center of window,
  779. cursor on first non-blank
  780. |z=| z= give spelling suggestions
  781. |zA| zA open a closed fold or close an open fold
  782. recursively
  783. |zC| zC close folds recursively
  784. |zD| zD delete folds recursively
  785. |zE| zE eliminate all folds
  786. |zF| zF create a fold for N lines
  787. |zG| zG temporarily mark word as correctly spelled
  788. |zH| zH when 'wrap' off scroll half a screenwidth
  789. to the right
  790. |zL| zL when 'wrap' off scroll half a screenwidth
  791. to the left
  792. |zM| zM set 'foldlevel' to zero
  793. |zN| zN set 'foldenable'
  794. |zO| zO open folds recursively
  795. |zR| zR set 'foldlevel' to the deepest fold
  796. |zW| zW temporarily mark word as incorrectly spelled
  797. |zX| zX re-apply 'foldlevel'
  798. |z^| z^ cursor on line N (default line above
  799. window), otherwise like "z-"
  800. |za| za open a closed fold, close an open fold
  801. |zb| zb redraw, cursor line at bottom of window
  802. |zc| zc close a fold
  803. |zd| zd delete a fold
  804. |ze| ze when 'wrap' off scroll horizontally to
  805. position the cursor at the end (right side)
  806. of the screen
  807. |zf| zf{motion} create a fold for Nmove text
  808. |zg| zg permanently mark word as correctly spelled
  809. |zh| zh when 'wrap' off scroll screen N characters
  810. to the right
  811. |zi| zi toggle 'foldenable'
  812. |zj| zj 1 move to the start of the next fold
  813. |zk| zk 1 move to the end of the previous fold
  814. |zl| zl when 'wrap' off scroll screen N characters
  815. to the left
  816. |zm| zm subtract one from 'foldlevel'
  817. |zn| zn reset 'foldenable'
  818. |zo| zo open fold
  819. |zp| zp paste in block-mode without trailing spaces
  820. |zP| zP paste in block-mode without trailing spaces
  821. |zr| zr add one to 'foldlevel'
  822. |zs| zs when 'wrap' off scroll horizontally to
  823. position the cursor at the start (left
  824. side) of the screen
  825. |zt| zt redraw, cursor line at top of window
  826. |zuw| zuw undo |zw|
  827. |zug| zug undo |zg|
  828. |zuW| zuW undo |zW|
  829. |zuG| zuG undo |zG|
  830. |zv| zv open enough folds to view the cursor line
  831. |zw| zw permanently mark word as incorrectly spelled
  832. |zx| zx re-apply 'foldlevel' and do "zv"
  833. |zy| zy yank without trailing spaces
  834. |zz| zz redraw, cursor line at center of window
  835. |z<Left>| z<Left> same as "zh"
  836. |z<Right>| z<Right> same as "zl"
  837. ==============================================================================
  838. 2.6 Operator-pending mode *operator-pending-index*
  839. These can be used after an operator, but before a {motion} has been entered.
  840. tag char action in Operator-pending mode ~
  841. -----------------------------------------------------------------------
  842. |o_v| v force operator to work charwise
  843. |o_V| V force operator to work linewise
  844. |o_CTRL-V| CTRL-V force operator to work blockwise
  845. ==============================================================================
  846. 3. Visual mode *visual-index*
  847. Most commands in Visual mode are the same as in Normal mode. The ones listed
  848. here are those that are different.
  849. tag command note action in Visual mode ~
  850. ------------------------------------------------------------------------------
  851. |v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
  852. |v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to Normal mode
  853. |v_CTRL-A| CTRL-A 2 add N to number in highlighted text
  854. |v_CTRL-C| CTRL-C stop Visual mode
  855. |v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
  856. |v_<BS>| <BS> 2 Select mode: delete highlighted area
  857. |v_CTRL-H| CTRL-H 2 same as <BS>
  858. |v_CTRL-O| CTRL-O switch from Select to Visual mode for one
  859. command
  860. |v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
  861. mode
  862. |v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
  863. |v_<Esc>| <Esc> stop Visual mode
  864. |v_CTRL-]| CTRL-] jump to highlighted tag
  865. |v_!| !{filter} 2 filter the highlighted lines through the
  866. external command {filter}
  867. |v_:| : start a command-line with the highlighted
  868. lines as a range
  869. |v_<| < 2 shift the highlighted lines one
  870. 'shiftwidth' left
  871. |v_=| = 2 filter the highlighted lines through the
  872. external program given with the 'equalprg'
  873. option
  874. |v_>| > 2 shift the highlighted lines one
  875. 'shiftwidth' right
  876. |v_b_A| A 2 block mode: append same text in all lines,
  877. after the highlighted area
  878. |v_C| C 2 delete the highlighted lines and start
  879. insert
  880. |v_D| D 2 delete the highlighted lines
  881. |v_b_I| I 2 block mode: insert same text in all lines,
  882. before the highlighted area
  883. |v_J| J 2 join the highlighted lines
  884. |v_K| K run 'keywordprg' on the highlighted area
  885. |v_O| O move horizontally to other corner of area
  886. |v_P| P replace highlighted area with register
  887. contents; registers are unchanged
  888. Q does not start Ex mode
  889. |v_R| R 2 delete the highlighted lines and start
  890. insert
  891. |v_S| S 2 delete the highlighted lines and start
  892. insert
  893. |v_U| U 2 make highlighted area uppercase
  894. |v_V| V make Visual mode linewise or stop Visual
  895. mode
  896. |v_X| X 2 delete the highlighted lines
  897. |v_Y| Y yank the highlighted lines
  898. |v_aquote| a" extend highlighted area with a double
  899. quoted string
  900. |v_a'| a' extend highlighted area with a single
  901. quoted string
  902. |v_a(| a( same as ab
  903. |v_a)| a) same as ab
  904. |v_a<| a< extend highlighted area with a <> block
  905. |v_a>| a> same as a<
  906. |v_aB| aB extend highlighted area with a {} block
  907. |v_aW| aW extend highlighted area with "a WORD"
  908. |v_a[| a[ extend highlighted area with a [] block
  909. |v_a]| a] same as a[
  910. |v_a`| a` extend highlighted area with a backtick
  911. quoted string
  912. |v_ab| ab extend highlighted area with a () block
  913. |v_ap| ap extend highlighted area with a paragraph
  914. |v_as| as extend highlighted area with a sentence
  915. |v_at| at extend highlighted area with a tag block
  916. |v_aw| aw extend highlighted area with "a word"
  917. |v_a{| a{ same as aB
  918. |v_a}| a} same as aB
  919. |v_c| c 2 delete highlighted area and start insert
  920. |v_d| d 2 delete highlighted area
  921. |v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
  922. |v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
  923. |v_gJ| gJ 2 join the highlighted lines without
  924. inserting spaces
  925. |v_gq| gq 2 format the highlighted lines
  926. |v_gv| gv exchange current and previous highlighted
  927. area
  928. |v_iquote| i" extend highlighted area with a double
  929. quoted string (without quotes)
  930. |v_i'| i' extend highlighted area with a single
  931. quoted string (without quotes)
  932. |v_i(| i( same as ib
  933. |v_i)| i) same as ib
  934. |v_i<| i< extend highlighted area with inner <> block
  935. |v_i>| i> same as i<
  936. |v_iB| iB extend highlighted area with inner {} block
  937. |v_iW| iW extend highlighted area with "inner WORD"
  938. |v_i[| i[ extend highlighted area with inner [] block
  939. |v_i]| i] same as i[
  940. |v_i`| i` extend highlighted area with a backtick
  941. quoted string (without the backticks)
  942. |v_ib| ib extend highlighted area with inner () block
  943. |v_ip| ip extend highlighted area with inner paragraph
  944. |v_is| is extend highlighted area with inner sentence
  945. |v_it| it extend highlighted area with inner tag block
  946. |v_iw| iw extend highlighted area with "inner word"
  947. |v_i{| i{ same as iB
  948. |v_i}| i} same as iB
  949. |v_o| o move cursor to other corner of area
  950. |v_p| p replace highlighted area with register
  951. contents; deleted text in unnamed register
  952. |v_r| r 2 replace highlighted area with a character
  953. |v_s| s 2 delete highlighted area and start insert
  954. |v_u| u 2 make highlighted area lowercase
  955. |v_v| v make Visual mode charwise or stop
  956. Visual mode
  957. |v_x| x 2 delete the highlighted area
  958. |v_y| y yank the highlighted area
  959. |v_~| ~ 2 swap case for the highlighted area
  960. ==============================================================================
  961. 4. Command-line editing *ex-edit-index*
  962. Get to the command-line with the ':', '!', '/' or '?' commands.
  963. Normal characters are inserted at the current cursor position.
  964. "Completion" below refers to context-sensitive completion. It will complete
  965. file names, tags, commands etc. as appropriate.
  966. tag command action in Command-line editing mode ~
  967. ------------------------------------------------------------------------------
  968. CTRL-@ not used
  969. |c_CTRL-A| CTRL-A do completion on the pattern in front of the
  970. cursor and insert all matches
  971. |c_CTRL-B| CTRL-B cursor to begin of command-line
  972. |c_CTRL-C| CTRL-C same as <Esc>
  973. |c_CTRL-D| CTRL-D list completions that match the pattern in
  974. front of the cursor
  975. |c_CTRL-E| CTRL-E cursor to end of command-line
  976. |'cedit'| CTRL-F default value for 'cedit': opens the
  977. command-line window; otherwise not used
  978. |c_CTRL-G| CTRL-G next match when 'incsearch' is active
  979. |c_<BS>| <BS> delete the character in front of the cursor
  980. |c_digraph| {char1} <BS> {char2}
  981. enter digraph when 'digraph' is on
  982. |c_CTRL-H| CTRL-H same as <BS>
  983. |c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
  984. the pattern in front of the cursor
  985. |c_<S-Tab>| <S-Tab> same as CTRL-P
  986. |c_wildchar| 'wildchar' Do completion on the pattern in front of the
  987. cursor (default: <Tab>)
  988. |c_CTRL-I| CTRL-I same as <Tab>
  989. |c_<NL>| <NL> same as <CR>
  990. |c_CTRL-J| CTRL-J same as <CR>
  991. |c_CTRL-K| CTRL-K {char1} {char2}
  992. enter digraph
  993. |c_CTRL-L| CTRL-L do completion on the pattern in front of the
  994. cursor and insert the longest common part
  995. |c_<CR>| <CR> execute entered command
  996. |c_CTRL-M| CTRL-M same as <CR>
  997. |c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
  998. go to next match, otherwise: recall older
  999. command-line from history.
  1000. CTRL-O not used
  1001. |c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
  1002. go to previous match, otherwise: recall older
  1003. command-line from history.
  1004. |c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
  1005. control flow
  1006. |c_CTRL-R| CTRL-R {regname}
  1007. insert the contents of a register or object
  1008. under the cursor as if typed
  1009. |c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname}
  1010. |c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname}
  1011. insert the contents of a register or object
  1012. under the cursor literally
  1013. CTRL-S not used, or used for terminal control flow
  1014. |c_CTRL-T| CTRL-T previous match when 'incsearch' is active
  1015. |c_CTRL-U| CTRL-U remove all characters
  1016. |c_CTRL-V| CTRL-V insert next non-digit literally, insert three
  1017. digit decimal number as a single byte.
  1018. |c_CTRL-W| CTRL-W delete the word in front of the cursor
  1019. CTRL-X not used (reserved for completion)
  1020. CTRL-Y copy (yank) modeless selection
  1021. CTRL-Z not used (reserved for suspend)
  1022. |c_<Esc>| <Esc> abandon command-line without executing it
  1023. |c_CTRL-[| CTRL-[ same as <Esc>
  1024. |c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
  1025. |c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to Normal mode, abandon command-line
  1026. CTRL-\ a - d reserved for extensions
  1027. |c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
  1028. {expr}
  1029. CTRL-\ f - z reserved for extensions
  1030. CTRL-\ others not used
  1031. |c_CTRL-]| CTRL-] trigger abbreviation
  1032. |c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
  1033. |c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
  1034. (Hebrew)
  1035. |c_<Del>| <Del> delete the character under the cursor
  1036. |c_<Left>| <Left> cursor left
  1037. |c_<S-Left>| <S-Left> cursor one word left
  1038. |c_<C-Left>| <C-Left> cursor one word left
  1039. |c_<Right>| <Right> cursor right
  1040. |c_<S-Right>| <S-Right> cursor one word right
  1041. |c_<C-Right>| <C-Right> cursor one word right
  1042. |c_<Up>| <Up> recall previous command-line from history that
  1043. matches pattern in front of the cursor
  1044. |c_<S-Up>| <S-Up> recall previous command-line from history
  1045. |c_<Down>| <Down> recall next command-line from history that
  1046. matches pattern in front of the cursor
  1047. |c_<S-Down>| <S-Down> recall next command-line from history
  1048. |c_<Home>| <Home> cursor to start of command-line
  1049. |c_<End>| <End> cursor to end of command-line
  1050. |c_<PageDown>| <PageDown> same as <S-Down>
  1051. |c_<PageUp>| <PageUp> same as <S-Up>
  1052. |c_<Insert>| <Insert> toggle insert/overstrike mode
  1053. |c_<LeftMouse>| <LeftMouse> cursor at mouse click
  1054. ==============================================================================
  1055. 5. Terminal mode *terminal-mode-index*
  1056. In a |terminal| buffer all keys except CTRL-\ are forwarded to the terminal
  1057. job. If CTRL-\ is pressed, the next key is forwarded unless it is CTRL-N
  1058. or CTRL-O.
  1059. Use |CTRL-\_CTRL-N| to go to Normal mode.
  1060. Use |t_CTRL-\_CTRL-O| to execute one normal mode command and then return
  1061. to terminal mode.
  1062. You found it, Arthur! *holy-grail*
  1063. ==============================================================================
  1064. 6. EX commands *ex-commands* *ex-cmd-index* *:index*
  1065. This is a brief but complete listing of all the ":" commands, without
  1066. mentioning any arguments. The optional part of the command name is inside [].
  1067. The commands are sorted on the non-optional part of their name.
  1068. tag command action ~
  1069. ------------------------------------------------------------------------------
  1070. |:| : nothing
  1071. |:range| :{range} go to last line in {range}
  1072. |:!| :! filter lines or execute an external command
  1073. |:!!| :!! repeat last ":!" command
  1074. |:#| :# same as ":number"
  1075. |:&| :& repeat last ":substitute"
  1076. |:star| :* execute contents of a register
  1077. |:<| :< shift lines one 'shiftwidth' left
  1078. |:=| := print the cursor line number
  1079. |:>| :> shift lines one 'shiftwidth' right
  1080. |:@| :@ execute contents of a register
  1081. |:@@| :@@ repeat the previous ":@"
  1082. |:Next| :N[ext] go to previous file in the argument list
  1083. |:append| :a[ppend] append text
  1084. |:abbreviate| :ab[breviate] enter abbreviation
  1085. |:abclear| :abc[lear] remove all abbreviations
  1086. |:aboveleft| :abo[veleft] make split window appear left or above
  1087. |:all| :al[l] open a window for each file in the argument
  1088. list
  1089. |:amenu| :am[enu] enter new menu item for all modes
  1090. |:anoremenu| :an[oremenu] enter a new menu for all modes that will not
  1091. be remapped
  1092. |:args| :ar[gs] print the argument list
  1093. |:argadd| :arga[dd] add items to the argument list
  1094. |:argdedupe| :argded[upe] remove duplicates from the argument list
  1095. |:argdelete| :argd[elete] delete items from the argument list
  1096. |:argedit| :arge[dit] add item to the argument list and edit it
  1097. |:argdo| :argdo do a command on all items in the argument list
  1098. |:argglobal| :argg[lobal] define the global argument list
  1099. |:arglocal| :argl[ocal] define a local argument list
  1100. |:argument| :argu[ment] go to specific file in the argument list
  1101. |:ascii| :as[cii] print ascii value of character under the cursor
  1102. |:autocmd| :au[tocmd] enter or show autocommands
  1103. |:augroup| :aug[roup] select the autocommand group to use
  1104. |:aunmenu| :aun[menu] remove menu for all modes
  1105. |:buffer| :b[uffer] go to specific buffer in the buffer list
  1106. |:bNext| :bN[ext] go to previous buffer in the buffer list
  1107. |:ball| :ba[ll] open a window for each buffer in the buffer list
  1108. |:badd| :bad[d] add buffer to the buffer list
  1109. |:balt| :balt like ":badd" but also set the alternate file
  1110. |:bdelete| :bd[elete] remove a buffer from the buffer list
  1111. |:behave| :be[have] set mouse and selection behavior
  1112. |:belowright| :bel[owright] make split window appear right or below
  1113. |:bfirst| :bf[irst] go to first buffer in the buffer list
  1114. |:blast| :bl[ast] go to last buffer in the buffer list
  1115. |:bmodified| :bm[odified] go to next buffer in the buffer list that has
  1116. been modified
  1117. |:bnext| :bn[ext] go to next buffer in the buffer list
  1118. |:botright| :bo[tright] make split window appear at bottom or far right
  1119. |:bprevious| :bp[revious] go to previous buffer in the buffer list
  1120. |:brewind| :br[ewind] go to first buffer in the buffer list
  1121. |:break| :brea[k] break out of while loop
  1122. |:breakadd| :breaka[dd] add a debugger breakpoint
  1123. |:breakdel| :breakd[el] delete a debugger breakpoint
  1124. |:breaklist| :breakl[ist] list debugger breakpoints
  1125. |:browse| :bro[wse] use file selection dialog
  1126. |:bufdo| :bufdo execute command in each listed buffer
  1127. |:buffers| :buffers list all files in the buffer list
  1128. |:bunload| :bun[load] unload a specific buffer
  1129. |:bwipeout| :bw[ipeout] really delete a buffer
  1130. |:change| :c[hange] replace a line or series of lines
  1131. |:cNext| :cN[ext] go to previous error
  1132. |:cNfile| :cNf[ile] go to last error in previous file
  1133. |:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
  1134. |:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
  1135. |:cabove| :cabo[ve] go to error above current line
  1136. |:caddbuffer| :cad[dbuffer] add errors from buffer
  1137. |:caddexpr| :cadde[xpr] add errors from expr
  1138. |:caddfile| :caddf[ile] add error message to current quickfix list
  1139. |:cafter| :caf[ter] go to error after current cursor
  1140. |:call| :cal[l] call a function
  1141. |:catch| :cat[ch] part of a :try command
  1142. |:cbefore| :cbef[ore] go to error before current cursor
  1143. |:cbelow| :cbel[ow] go to error below current line
  1144. |:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
  1145. |:cbuffer| :cb[uffer] parse error messages and jump to first error
  1146. |:cc| :cc go to specific error
  1147. |:cclose| :ccl[ose] close quickfix window
  1148. |:cd| :cd change directory
  1149. |:cdo| :cdo execute command in each valid error list entry
  1150. |:cfdo| :cfd[o] execute command in each file in error list
  1151. |:center| :ce[nter] format lines at the center
  1152. |:cexpr| :cex[pr] read errors from expr and jump to first
  1153. |:cfile| :cf[ile] read file with error messages and jump to first
  1154. |:cfirst| :cfir[st] go to the specified error, default first one
  1155. |:cgetbuffer| :cgetb[uffer] get errors from buffer
  1156. |:cgetexpr| :cgete[xpr] get errors from expr
  1157. |:cgetfile| :cg[etfile] read file with error messages
  1158. |:changes| :changes print the change list
  1159. |:chdir| :chd[ir] change directory
  1160. |:checkhealth| :checkh[ealth] run healthchecks
  1161. |:checkpath| :che[ckpath] list included files
  1162. |:checktime| :checkt[ime] check timestamp of loaded buffers
  1163. |:chistory| :chi[story] list the error lists
  1164. |:clast| :cla[st] go to the specified error, default last one
  1165. |:clearjumps| :cle[arjumps] clear the jump list
  1166. |:clist| :cl[ist] list all errors
  1167. |:close| :clo[se] close current window
  1168. |:cmap| :cm[ap] like ":map" but for Command-line mode
  1169. |:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
  1170. |:cmenu| :cme[nu] add menu for Command-line mode
  1171. |:cnext| :cn[ext] go to next error
  1172. |:cnewer| :cnew[er] go to newer error list
  1173. |:cnfile| :cnf[ile] go to first error in next file
  1174. |:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
  1175. |:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
  1176. |:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
  1177. |:copy| :co[py] copy lines
  1178. |:colder| :col[der] go to older error list
  1179. |:colorscheme| :colo[rscheme] load a specific color scheme
  1180. |:command| :com[mand] create user-defined command
  1181. |:comclear| :comc[lear] clear all user-defined commands
  1182. |:compiler| :comp[iler] do settings for a specific compiler
  1183. |:continue| :con[tinue] go back to :while
  1184. |:confirm| :conf[irm] prompt user when confirmation required
  1185. |:const| :cons[t] create a variable as a constant
  1186. |:copen| :cope[n] open quickfix window
  1187. |:cprevious| :cp[revious] go to previous error
  1188. |:cpfile| :cpf[ile] go to last error in previous file
  1189. |:cquit| :cq[uit] quit Vim with an error code
  1190. |:crewind| :cr[ewind] go to the specified error, default first one
  1191. |:cscope| :cs[cope] execute cscope command
  1192. |:cstag| :cst[ag] use cscope to jump to a tag
  1193. |:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
  1194. |:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
  1195. |:cunmenu| :cunme[nu] remove menu for Command-line mode
  1196. |:cwindow| :cw[indow] open or close quickfix window
  1197. |:delete| :d[elete] delete lines
  1198. |:debug| :deb[ug] run a command in debugging mode
  1199. |:debuggreedy| :debugg[reedy] read debug mode commands from normal input
  1200. |:delcommand| :delc[ommand] delete user-defined command
  1201. |:delfunction| :delf[unction] delete a user function
  1202. |:delmarks| :delm[arks] delete marks
  1203. |:diffupdate| :dif[fupdate] update 'diff' buffers
  1204. |:diffget| :diffg[et] remove differences in current buffer
  1205. |:diffoff| :diffo[ff] switch off diff mode
  1206. |:diffpatch| :diffp[atch] apply a patch and show differences
  1207. |:diffput| :diffpu[t] remove differences in other buffer
  1208. |:diffsplit| :diffs[plit] show differences with another file
  1209. |:diffthis| :diffthis make current window a diff window
  1210. |:digraphs| :dig[raphs] show or enter digraphs
  1211. |:display| :di[splay] display registers
  1212. |:djump| :dj[ump] jump to #define
  1213. |:dl| :dl short for |:delete| with the 'l' flag
  1214. |:dlist| :dli[st] list #defines
  1215. |:doautocmd| :do[autocmd] apply autocommands to current buffer
  1216. |:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
  1217. |:dp| :d[elete]p short for |:delete| with the 'p' flag
  1218. |:drop| :dr[op] jump to window editing file or edit file in
  1219. current window
  1220. |:dsearch| :ds[earch] list one #define
  1221. |:dsplit| :dsp[lit] split window and jump to #define
  1222. |:edit| :e[dit] edit a file
  1223. |:earlier| :ea[rlier] go to older change, undo
  1224. |:echo| :ec[ho] echoes the result of expressions
  1225. |:echoerr| :echoe[rr] like :echo, show like an error and use history
  1226. |:echohl| :echoh[l] set highlighting for echo commands
  1227. |:echomsg| :echom[sg] same as :echo, put message in history
  1228. |:echon| :echon same as :echo, but without <EOL>
  1229. |:else| :el[se] part of an :if command
  1230. |:elseif| :elsei[f] part of an :if command
  1231. |:emenu| :em[enu] execute a menu by name
  1232. |:endif| :en[dif] end previous :if
  1233. |:endfor| :endfo[r] end previous :for
  1234. |:endfunction| :endf[unction] end of a user function started with :function
  1235. |:endtry| :endt[ry] end previous :try
  1236. |:endwhile| :endw[hile] end previous :while
  1237. |:enew| :ene[w] edit a new, unnamed buffer
  1238. |:eval| :ev[al] evaluate an expression and discard the result
  1239. |:ex| :ex same as ":edit"
  1240. |:execute| :exe[cute] execute result of expressions
  1241. |:exit| :exi[t] same as ":xit"
  1242. |:exusage| :exu[sage] overview of Ex commands
  1243. |:file| :f[ile] show or set the current file name
  1244. |:files| :files list all files in the buffer list
  1245. |:filetype| :filet[ype] switch file type detection on/off
  1246. |:filter| :filt[er] filter output of following command
  1247. |:find| :fin[d] find file in 'path' and edit it
  1248. |:finally| :fina[lly] part of a :try command
  1249. |:finish| :fini[sh] quit sourcing a Vim script
  1250. |:first| :fir[st] go to the first file in the argument list
  1251. |:fold| :fo[ld] create a fold
  1252. |:foldclose| :foldc[lose] close folds
  1253. |:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
  1254. |:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
  1255. |:foldopen| :foldo[pen] open folds
  1256. |:for| :for for loop
  1257. |:function| :fu[nction] define a user function
  1258. |:global| :g[lobal] execute commands for matching lines
  1259. |:goto| :go[to] go to byte in the buffer
  1260. |:grep| :gr[ep] run 'grepprg' and jump to first match
  1261. |:grepadd| :grepa[dd] like :grep, but append to current list
  1262. |:gui| :gu[i] start the GUI
  1263. |:gvim| :gv[im] start the GUI
  1264. |:hardcopy| :ha[rdcopy] send text to the printer
  1265. |:help| :h[elp] open a help window
  1266. |:helpclose| :helpc[lose] close one help window
  1267. |:helpgrep| :helpg[rep] like ":grep" but searches help files
  1268. |:helptags| :helpt[ags] generate help tags for a directory
  1269. |:highlight| :hi[ghlight] specify highlighting methods
  1270. |:hide| :hid[e] hide current buffer for a command
  1271. |:history| :his[tory] print a history list
  1272. |:insert| :i[nsert] insert text
  1273. |:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
  1274. |:iabclear| :iabc[lear] like ":abclear" but for Insert mode
  1275. |:if| :if execute commands when condition met
  1276. |:ijump| :ij[ump] jump to definition of identifier
  1277. |:ilist| :il[ist] list lines where identifier matches
  1278. |:imap| :im[ap] like ":map" but for Insert mode
  1279. |:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
  1280. |:imenu| :ime[nu] add menu for Insert mode
  1281. |:inoremap| :ino[remap] like ":noremap" but for Insert mode
  1282. |:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
  1283. |:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
  1284. |:intro| :int[ro] print the introductory message
  1285. |:isearch| :is[earch] list one line where identifier matches
  1286. |:isplit| :isp[lit] split window and jump to definition of
  1287. identifier
  1288. |:iunmap| :iu[nmap] like ":unmap" but for Insert mode
  1289. |:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
  1290. |:iunmenu| :iunme[nu] remove menu for Insert mode
  1291. |:join| :j[oin] join lines
  1292. |:jumps| :ju[mps] print the jump list
  1293. |:k| :k set a mark
  1294. |:keepalt| :keepa[lt] following command keeps the alternate file
  1295. |:keepmarks| :kee[pmarks] following command keeps marks where they are
  1296. |:keepjumps| :keepj[umps] following command keeps jumplist and marks
  1297. |:keeppatterns| :keepp[atterns] following command keeps search pattern history
  1298. |:lNext| :lN[ext] go to previous entry in location list
  1299. |:lNfile| :lNf[ile] go to last entry in previous file
  1300. |:list| :l[ist] print lines
  1301. |:labove| :lab[ove] go to location above current line
  1302. |:laddexpr| :lad[dexpr] add locations from expr
  1303. |:laddbuffer| :laddb[uffer] add locations from buffer
  1304. |:laddfile| :laddf[ile] add locations to current location list
  1305. |:lafter| :laf[ter] go to location after current cursor
  1306. |:last| :la[st] go to the last file in the argument list
  1307. |:language| :lan[guage] set the language (locale)
  1308. |:later| :lat[er] go to newer change, redo
  1309. |:lbefore| :lbef[ore] go to location before current cursor
  1310. |:lbelow| :lbel[ow] go to location below current line
  1311. |:lbottom| :lbo[ttom] scroll to the bottom of the location window
  1312. |:lbuffer| :lb[uffer] parse locations and jump to first location
  1313. |:lcd| :lc[d] change directory locally
  1314. |:lchdir| :lch[dir] change directory locally
  1315. |:lclose| :lcl[ose] close location window
  1316. |:lcscope| :lcs[cope] like ":cscope" but uses location list
  1317. |:ldo| :ld[o] execute command in valid location list entries
  1318. |:lfdo| :lfd[o] execute command in each file in location list
  1319. |:left| :le[ft] left align lines
  1320. |:leftabove| :lefta[bove] make split window appear left or above
  1321. |:let| :let assign a value to a variable or option
  1322. |:lexpr| :lex[pr] read locations from expr and jump to first
  1323. |:lfile| :lf[ile] read file with locations and jump to first
  1324. |:lfirst| :lfir[st] go to the specified location, default first one
  1325. |:lgetbuffer| :lgetb[uffer] get locations from buffer
  1326. |:lgetexpr| :lgete[xpr] get locations from expr
  1327. |:lgetfile| :lg[etfile] read file with locations
  1328. |:lgrep| :lgr[ep] run 'grepprg' and jump to first match
  1329. |:lgrepadd| :lgrepa[dd] like :grep, but append to current list
  1330. |:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
  1331. |:lhistory| :lhi[story] list the location lists
  1332. |:ll| :ll go to specific location
  1333. |:llast| :lla[st] go to the specified location, default last one
  1334. |:llist| :lli[st] list all locations
  1335. |:lmake| :lmak[e] execute external command 'makeprg' and parse
  1336. error messages
  1337. |:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
  1338. |:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
  1339. |:lnext| :lne[xt] go to next location
  1340. |:lnewer| :lnew[er] go to newer location list
  1341. |:lnfile| :lnf[ile] go to first location in next file
  1342. |:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
  1343. |:loadkeymap| :loadk[eymap] load the following keymaps until EOF
  1344. |:loadview| :lo[adview] load view for current window from a file
  1345. |:lockmarks| :loc[kmarks] following command keeps marks where they are
  1346. |:lockvar| :lockv[ar] lock variables
  1347. |:lolder| :lol[der] go to older location list
  1348. |:lopen| :lope[n] open location window
  1349. |:lprevious| :lp[revious] go to previous location
  1350. |:lpfile| :lpf[ile] go to last location in previous file
  1351. |:lrewind| :lr[ewind] go to the specified location, default first one
  1352. |:ls| :ls list all buffers
  1353. |:ltag| :lt[ag] jump to tag and add matching tags to the
  1354. location list
  1355. |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
  1356. |:lua| :lua execute |Lua| command
  1357. |:luado| :luad[o] execute Lua command for each line
  1358. |:luafile| :luaf[ile] execute |Lua| script file
  1359. |:lvimgrep| :lv[imgrep] search for pattern in files
  1360. |:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
  1361. |:lwindow| :lw[indow] open or close location window
  1362. |:move| :m[ove] move lines
  1363. |:mark| :ma[rk] set a mark
  1364. |:make| :mak[e] execute external command 'makeprg' and parse
  1365. error messages
  1366. |:map| :map show or enter a mapping
  1367. |:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
  1368. |:marks| :marks list all marks
  1369. |:match| :mat[ch] define a match to highlight
  1370. |:menu| :me[nu] enter a new menu item
  1371. |:menutranslate| :menut[ranslate] add a menu translation item
  1372. |:messages| :mes[sages] view previously displayed messages
  1373. |:mkexrc| :mk[exrc] write current mappings and settings to a file
  1374. |:mksession| :mks[ession] write session info to a file
  1375. |:mkspell| :mksp[ell] produce .spl spell file
  1376. |:mkvimrc| :mkv[imrc] write current mappings and settings to a file
  1377. |:mkview| :mkvie[w] write view of current window to a file
  1378. |:mode| :mod[e] show or change the screen mode
  1379. |:next| :n[ext] go to next file in the argument list
  1380. |:new| :new create a new empty window
  1381. |:nmap| :nm[ap] like ":map" but for Normal mode
  1382. |:nmapclear| :nmapc[lear] clear all mappings for Normal mode
  1383. |:nmenu| :nme[nu] add menu for Normal mode
  1384. |:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
  1385. |:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
  1386. |:noautocmd| :noa[utocmd] following commands don't trigger autocommands
  1387. |:noremap| :no[remap] enter a mapping that will not be remapped
  1388. |:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
  1389. |:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
  1390. remapped
  1391. |:noremenu| :noreme[nu] enter a menu that will not be remapped
  1392. |:normal| :norm[al] execute Normal mode commands
  1393. |:noswapfile| :nos[wapfile] following commands don't create a swap file
  1394. |:number| :nu[mber] print lines with line number
  1395. |:nunmap| :nun[map] like ":unmap" but for Normal mode
  1396. |:nunmenu| :nunme[nu] remove menu for Normal mode
  1397. |:oldfiles| :ol[dfiles] list files that have marks in the |shada| file
  1398. |:omap| :om[ap] like ":map" but for Operator-pending mode
  1399. |:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
  1400. |:omenu| :ome[nu] add menu for Operator-pending mode
  1401. |:only| :on[ly] close all windows except the current one
  1402. |:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
  1403. |:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
  1404. |:options| :opt[ions] open the options-window
  1405. |:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
  1406. |:ounmenu| :ounme[nu] remove menu for Operator-pending mode
  1407. |:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window
  1408. |:packadd| :pa[ckadd] add a plugin from 'packpath'
  1409. |:packloadall| :packl[oadall] load all packages under 'packpath'
  1410. |:pclose| :pc[lose] close preview window
  1411. |:pedit| :ped[it] edit file in the preview window
  1412. |:perl| :pe[rl] execute perl command
  1413. |:perldo| :perld[o] execute perl command for each line
  1414. |:perlfile| :perlf[ile] execute perl script file
  1415. |:print| :p[rint] print lines
  1416. |:profdel| :profd[el] stop profiling a function or script
  1417. |:profile| :prof[ile] profiling functions and scripts
  1418. |:pop| :po[p] jump to older entry in tag stack
  1419. |:popup| :popu[p] popup a menu by name
  1420. |:ppop| :pp[op] ":pop" in preview window
  1421. |:preserve| :pre[serve] write all text to swap file
  1422. |:previous| :prev[ious] go to previous file in argument list
  1423. |:psearch| :ps[earch] like ":ijump" but shows match in preview window
  1424. |:ptag| :pt[ag] show tag in preview window
  1425. |:ptNext| :ptN[ext] |:tNext| in preview window
  1426. |:ptfirst| :ptf[irst] |:trewind| in preview window
  1427. |:ptjump| :ptj[ump] |:tjump| and show tag in preview window
  1428. |:ptlast| :ptl[ast] |:tlast| in preview window
  1429. |:ptnext| :ptn[ext] |:tnext| in preview window
  1430. |:ptprevious| :ptp[revious] |:tprevious| in preview window
  1431. |:ptrewind| :ptr[ewind] |:trewind| in preview window
  1432. |:ptselect| :pts[elect] |:tselect| and show tag in preview window
  1433. |:put| :pu[t] insert contents of register in the text
  1434. |:pwd| :pw[d] print current directory
  1435. |:py3| :py3 execute Python 3 command
  1436. |:python3| :python3 same as :py3
  1437. |:py3do| :py3d[o] execute Python 3 command for each line
  1438. |:py3file| :py3f[ile] execute Python 3 script file
  1439. |:python| :py[thon] execute Python command
  1440. |:pydo| :pyd[o] execute Python command for each line
  1441. |:pyfile| :pyf[ile] execute Python script file
  1442. |:pyx| :pyx execute |python_x| command
  1443. |:pythonx| :pythonx same as :pyx
  1444. |:pyxdo| :pyxd[o] execute |python_x| command for each line
  1445. |:pyxfile| :pyxf[ile] execute |python_x| script file
  1446. |:quit| :q[uit] quit current window (when one window quit Vim)
  1447. |:quitall| :quita[ll] quit Vim
  1448. |:qall| :qa[ll] quit Vim
  1449. |:read| :r[ead] read file into the text
  1450. |:recover| :rec[over] recover a file from a swap file
  1451. |:redo| :red[o] redo one undone change
  1452. |:redir| :redi[r] redirect messages to a file or register
  1453. |:redraw| :redr[aw] force a redraw of the display
  1454. |:redrawstatus| :redraws[tatus] force a redraw of the status line(s) and
  1455. window bar(s)
  1456. |:redrawtabline| :redrawt[abline] force a redraw of the tabline
  1457. |:registers| :reg[isters] display the contents of registers
  1458. |:resize| :res[ize] change current window height
  1459. |:retab| :ret[ab] change tab size
  1460. |:return| :retu[rn] return from a user function
  1461. |:rewind| :rew[ind] go to the first file in the argument list
  1462. |:right| :ri[ght] right align text
  1463. |:rightbelow| :rightb[elow] make split window appear right or below
  1464. |:rshada| :rsh[ada] read from |shada| file
  1465. |:ruby| :rub[y] execute Ruby command
  1466. |:rubydo| :rubyd[o] execute Ruby command for each line
  1467. |:rubyfile| :rubyf[ile] execute Ruby script file
  1468. |:rundo| :rund[o] read undo information from a file
  1469. |:runtime| :ru[ntime] source vim scripts in 'runtimepath'
  1470. |:substitute| :s[ubstitute] find and replace text
  1471. |:sNext| :sN[ext] split window and go to previous file in
  1472. argument list
  1473. |:sandbox| :san[dbox] execute a command in the sandbox
  1474. |:sargument| :sa[rgument] split window and go to specific file in
  1475. argument list
  1476. |:sall| :sal[l] open a window for each file in argument list
  1477. |:saveas| :sav[eas] save file under another name.
  1478. |:sbuffer| :sb[uffer] split window and go to specific file in the
  1479. buffer list
  1480. |:sbNext| :sbN[ext] split window and go to previous file in the
  1481. buffer list
  1482. |:sball| :sba[ll] open a window for each file in the buffer list
  1483. |:sbfirst| :sbf[irst] split window and go to first file in the
  1484. buffer list
  1485. |:sblast| :sbl[ast] split window and go to last file in buffer
  1486. list
  1487. |:sbmodified| :sbm[odified] split window and go to modified file in the
  1488. buffer list
  1489. |:sbnext| :sbn[ext] split window and go to next file in the buffer
  1490. list
  1491. |:sbprevious| :sbp[revious] split window and go to previous file in the
  1492. buffer list
  1493. |:sbrewind| :sbr[ewind] split window and go to first file in the
  1494. buffer list
  1495. |:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
  1496. |:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
  1497. |:scscope| :scs[cope] split window and execute cscope command
  1498. |:set| :se[t] show or set options
  1499. |:setfiletype| :setf[iletype] set 'filetype', unless it was set already
  1500. |:setglobal| :setg[lobal] show global values of options
  1501. |:setlocal| :setl[ocal] show or set options locally
  1502. |:sfind| :sf[ind] split current window and edit file in 'path'
  1503. |:sfirst| :sfir[st] split window and go to first file in the
  1504. argument list
  1505. |:sign| :sig[n] manipulate signs
  1506. |:silent| :sil[ent] run a command silently
  1507. |:sleep| :sl[eep] do nothing for a few seconds
  1508. |:slast| :sla[st] split window and go to last file in the
  1509. argument list
  1510. |:smagic| :sm[agic] :substitute with 'magic'
  1511. |:smap| :smap like ":map" but for Select mode
  1512. |:smapclear| :smapc[lear] remove all mappings for Select mode
  1513. |:smenu| :sme[nu] add menu for Select mode
  1514. |:snext| :sn[ext] split window and go to next file in the
  1515. argument list
  1516. |:snomagic| :sno[magic] :substitute with 'nomagic'
  1517. |:snoremap| :snor[emap] like ":noremap" but for Select mode
  1518. |:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
  1519. |:sort| :sor[t] sort lines
  1520. |:source| :so[urce] read Vim or Ex commands from a file
  1521. |:spelldump| :spelld[ump] split window and fill with all correct words
  1522. |:spellgood| :spe[llgood] add good word for spelling
  1523. |:spellinfo| :spelli[nfo] show info about loaded spell files
  1524. |:spellrare| :spellra[re] add rare word for spelling
  1525. |:spellrepall| :spellr[epall] replace all bad words like last |z=|
  1526. |:spellundo| :spellu[ndo] remove good or bad word
  1527. |:spellwrong| :spellw[rong] add spelling mistake
  1528. |:split| :sp[lit] split current window
  1529. |:sprevious| :spr[evious] split window and go to previous file in the
  1530. argument list
  1531. |:srewind| :sre[wind] split window and go to first file in the
  1532. argument list
  1533. |:stop| :st[op] suspend the editor or escape to a shell
  1534. |:stag| :sta[g] split window and jump to a tag
  1535. |:startinsert| :star[tinsert] start Insert mode
  1536. |:startgreplace| :startg[replace] start Virtual Replace mode
  1537. |:startreplace| :startr[eplace] start Replace mode
  1538. |:stopinsert| :stopi[nsert] stop Insert mode
  1539. |:stjump| :stj[ump] do ":tjump" and split window
  1540. |:stselect| :sts[elect] do ":tselect" and split window
  1541. |:sunhide| :sun[hide] same as ":unhide"
  1542. |:sunmap| :sunm[ap] like ":unmap" but for Select mode
  1543. |:sunmenu| :sunme[nu] remove menu for Select mode
  1544. |:suspend| :sus[pend] same as ":stop"
  1545. |:sview| :sv[iew] split window and edit file read-only
  1546. |:swapname| :sw[apname] show the name of the current swap file
  1547. |:syntax| :sy[ntax] syntax highlighting
  1548. |:syntime| :synti[me] measure syntax highlighting speed
  1549. |:syncbind| :sync[bind] sync scroll binding
  1550. |:t| :t same as ":copy"
  1551. |:tNext| :tN[ext] jump to previous matching tag
  1552. |:tabNext| :tabN[ext] go to previous tab page
  1553. |:tabclose| :tabc[lose] close current tab page
  1554. |:tabdo| :tabdo execute command in each tab page
  1555. |:tabedit| :tabe[dit] edit a file in a new tab page
  1556. |:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
  1557. |:tabfirst| :tabfir[st] go to first tab page
  1558. |:tablast| :tabl[ast] go to last tab page
  1559. |:tabmove| :tabm[ove] move tab page to other position
  1560. |:tabnew| :tabnew edit a file in a new tab page
  1561. |:tabnext| :tabn[ext] go to next tab page
  1562. |:tabonly| :tabo[nly] close all tab pages except the current one
  1563. |:tabprevious| :tabp[revious] go to previous tab page
  1564. |:tabrewind| :tabr[ewind] go to first tab page
  1565. |:tabs| :tabs list the tab pages and what they contain
  1566. |:tab| :tab create new tab when opening new window
  1567. |:tag| :ta[g] jump to tag
  1568. |:tags| :tags show the contents of the tag stack
  1569. |:tcd| :tc[d] change directory for tab page
  1570. |:tchdir| :tch[dir] change directory for tab page
  1571. |:terminal| :te[rminal] open a terminal buffer
  1572. |:tfirst| :tf[irst] jump to first matching tag
  1573. |:throw| :th[row] throw an exception
  1574. |:tjump| :tj[ump] like ":tselect", but jump directly when there
  1575. is only one match
  1576. |:tlast| :tl[ast] jump to last matching tag
  1577. |:tlmenu| :tlm[enu] add menu for |Terminal-mode|
  1578. |:tlnoremenu| :tln[oremenu] like ":noremenu" but for |Terminal-mode|
  1579. |:tlunmenu| :tlu[nmenu] remove menu for |Terminal-mode|
  1580. |:tmapclear| :tmapc[lear] remove all mappings for |Terminal-mode|
  1581. |:tmap| :tma[p] like ":map" but for |Terminal-mode|
  1582. |:tmenu| :tm[enu] define menu tooltip
  1583. |:tnext| :tn[ext] jump to next matching tag
  1584. |:tnoremap| :tno[remap] like ":noremap" but for |Terminal-mode|
  1585. |:topleft| :to[pleft] make split window appear at top or far left
  1586. |:tprevious| :tp[revious] jump to previous matching tag
  1587. |:trewind| :tr[ewind] jump to first matching tag
  1588. |:try| :try execute commands, abort on error or exception
  1589. |:tselect| :ts[elect] list matching tags and select one
  1590. |:tunmap| :tunma[p] like ":unmap" but for |Terminal-mode|
  1591. |:tunmenu| :tu[nmenu] remove menu tooltip
  1592. |:undo| :u[ndo] undo last change(s)
  1593. |:undojoin| :undoj[oin] join next change with previous undo block
  1594. |:undolist| :undol[ist] list leafs of the undo tree
  1595. |:unabbreviate| :una[bbreviate] remove abbreviation
  1596. |:unhide| :unh[ide] open a window for each loaded file in the
  1597. buffer list
  1598. |:unlet| :unl[et] delete variable
  1599. |:unlockvar| :unlo[ckvar] unlock variables
  1600. |:unmap| :unm[ap] remove mapping
  1601. |:unmenu| :unme[nu] remove menu
  1602. |:unsilent| :uns[ilent] run a command not silently
  1603. |:update| :up[date] write buffer if modified
  1604. |:vglobal| :v[global] execute commands for not matching lines
  1605. |:version| :ve[rsion] print version number and other info
  1606. |:verbose| :verb[ose] execute command with 'verbose' set
  1607. |:vertical| :vert[ical] make following command split vertically
  1608. |:vimgrep| :vim[grep] search for pattern in files
  1609. |:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
  1610. |:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
  1611. |:viusage| :viu[sage] overview of Normal mode commands
  1612. |:view| :vie[w] edit a file read-only
  1613. |:vmap| :vm[ap] like ":map" but for Visual+Select mode
  1614. |:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
  1615. |:vmenu| :vme[nu] add menu for Visual+Select mode
  1616. |:vnew| :vne[w] create a new empty window, vertically split
  1617. |:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
  1618. |:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
  1619. |:vsplit| :vs[plit] split current window vertically
  1620. |:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
  1621. |:vunmenu| :vunme[nu] remove menu for Visual+Select mode
  1622. |:windo| :windo execute command in each window
  1623. |:write| :w[rite] write to a file
  1624. |:wNext| :wN[ext] write to a file and go to previous file in
  1625. argument list
  1626. |:wall| :wa[ll] write all (changed) buffers
  1627. |:while| :wh[ile] execute loop for as long as condition met
  1628. |:winsize| :wi[nsize] get or set window size (obsolete)
  1629. |:wincmd| :winc[md] execute a Window (CTRL-W) command
  1630. |:winpos| :winp[os] get or set window position
  1631. |:wnext| :wn[ext] write to a file and go to next file in
  1632. argument list
  1633. |:wprevious| :wp[revious] write to a file and go to previous file in
  1634. argument list
  1635. |:wq| :wq write to a file and quit window or Vim
  1636. |:wqall| :wqa[ll] write all changed buffers and quit Vim
  1637. |:wshada| :wsh[ada] write to ShaDa file
  1638. |:wundo| :wu[ndo] write undo information to a file
  1639. |:xit| :x[it] write if buffer changed and close window
  1640. |:xall| :xa[ll] same as ":wqall"
  1641. |:xmapclear| :xmapc[lear] remove all mappings for Visual mode
  1642. |:xmap| :xm[ap] like ":map" but for Visual mode
  1643. |:xmenu| :xme[nu] add menu for Visual mode
  1644. |:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
  1645. |:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
  1646. |:xunmap| :xu[nmap] like ":unmap" but for Visual mode
  1647. |:xunmenu| :xunme[nu] remove menu for Visual mode
  1648. |:yank| :y[ank] yank lines into a register
  1649. |:z| :z print some lines
  1650. |:~| :~ repeat last ":substitute"
  1651. vim:tw=78:ts=8:noet:ft=help:norl: