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