Mercurial > vim
comparison runtime/doc/windows.txt @ 1123:c4cd8ad60bee
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 17:59:48 +0000 |
parents | 4bac29d27e2f |
children | 82274b284600 |
comparison
equal
deleted
inserted
replaced
1122:2ad54fcf37e3 | 1123:c4cd8ad60bee |
---|---|
1 *windows.txt* For Vim version 7.0. Last change: 2006 Apr 24 | 1 *windows.txt* For Vim version 7.1a. Last change: 2007 Mar 17 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
198 | 198 |
199 *:vert* *:vertical* | 199 *:vert* *:vertical* |
200 :vert[ical] {cmd} | 200 :vert[ical] {cmd} |
201 Execute {cmd}. If it contains a command that splits a window, | 201 Execute {cmd}. If it contains a command that splits a window, |
202 it will be split vertically. | 202 it will be split vertically. |
203 Doesn't work for |:execute| and |:normal|. | |
203 | 204 |
204 :lefta[bove] {cmd} *:lefta* *:leftabove* | 205 :lefta[bove] {cmd} *:lefta* *:leftabove* |
205 :abo[veleft] {cmd} *:abo* *:aboveleft* | 206 :abo[veleft] {cmd} *:abo* *:aboveleft* |
206 Execute {cmd}. If it contains a command that splits a window, | 207 Execute {cmd}. If it contains a command that splits a window, |
207 it will be opened left (vertical split) or above (horizontal | 208 it will be opened left (vertical split) or above (horizontal |
208 split) the current window. Overrules 'splitbelow' and | 209 split) the current window. Overrules 'splitbelow' and |
209 'splitright'. | 210 'splitright'. |
211 Doesn't work for |:execute| and |:normal|. | |
210 | 212 |
211 :rightb[elow] {cmd} *:rightb* *:rightbelow* | 213 :rightb[elow] {cmd} *:rightb* *:rightbelow* |
212 :bel[owright] {cmd} *:bel* *:belowright* | 214 :bel[owright] {cmd} *:bel* *:belowright* |
213 Execute {cmd}. If it contains a command that splits a window, | 215 Execute {cmd}. If it contains a command that splits a window, |
214 it will be opened right (vertical split) or below (horizontal | 216 it will be opened right (vertical split) or below (horizontal |
215 split) the current window. Overrules 'splitbelow' and | 217 split) the current window. Overrules 'splitbelow' and |
216 'splitright'. | 218 'splitright'. |
219 Doesn't work for |:execute| and |:normal|. | |
217 | 220 |
218 *:topleft* *E442* | 221 *:topleft* *E442* |
219 :to[pleft] {cmd} | 222 :to[pleft] {cmd} |
220 Execute {cmd}. If it contains a command that splits a window, | 223 Execute {cmd}. If it contains a command that splits a window, |
221 it will appear at the top and occupy the full width of the Vim | 224 it will appear at the top and occupy the full width of the Vim |
222 window. When the split is vertical the window appears at the | 225 window. When the split is vertical the window appears at the |
223 far left and occupies the full height of the Vim window. | 226 far left and occupies the full height of the Vim window. |
227 Doesn't work for |:execute| and |:normal|. | |
224 | 228 |
225 *:botright* | 229 *:botright* |
226 :bo[tright] {cmd} | 230 :bo[tright] {cmd} |
227 Execute {cmd}. If it contains a command that splits a window, | 231 Execute {cmd}. If it contains a command that splits a window, |
228 it will appear at the bottom and occupy the full width of the | 232 it will appear at the bottom and occupy the full width of the |
229 Vim window. When the split is vertical the window appears at | 233 Vim window. When the split is vertical the window appears at |
230 the far right and occupies the full height of the Vim window. | 234 the far right and occupies the full height of the Vim window. |
235 Doesn't work for |:execute| and |:normal|. | |
231 | 236 |
232 These command modifiers can be combined to make a vertically split window | 237 These command modifiers can be combined to make a vertically split window |
233 occupy the full height. Example: > | 238 occupy the full height. Example: > |
234 :vertical topleft edit tags | 239 :vertical topleft edit tags |
235 Opens a vertically split, full-height window on the "tags" file at the far | 240 Opens a vertically split, full-height window on the "tags" file at the far |
445 6. Window resizing *window-resize* | 450 6. Window resizing *window-resize* |
446 | 451 |
447 *CTRL-W_=* | 452 *CTRL-W_=* |
448 CTRL-W = Make all windows (almost) equally high and wide, but use | 453 CTRL-W = Make all windows (almost) equally high and wide, but use |
449 'winheight' and 'winwidth' for the current window. | 454 'winheight' and 'winwidth' for the current window. |
455 Windows with 'winfixheight' set keep their height and windows | |
456 with 'winfixwidth' set keep their width. | |
450 | 457 |
451 :res[ize] -N *:res* *:resize* *CTRL-W_-* | 458 :res[ize] -N *:res* *:resize* *CTRL-W_-* |
452 CTRL-W - Decrease current window height by N (default 1). | 459 CTRL-W - Decrease current window height by N (default 1). |
453 If used after 'vertical': decrease width by N. | 460 If used after 'vertical': decrease width by N. |
454 | 461 |
1116 the buffer list. When a count is given, this is the maximum | 1123 the buffer list. When a count is given, this is the maximum |
1117 number of windows to open. 'winheight' also limits the number | 1124 number of windows to open. 'winheight' also limits the number |
1118 of windows opened ('winwidth' if |:vertical| was prepended). | 1125 of windows opened ('winwidth' if |:vertical| was prepended). |
1119 Buf/Win Enter/Leave autocommands are not executed for the new | 1126 Buf/Win Enter/Leave autocommands are not executed for the new |
1120 windows here, that's only done when they are really entered. | 1127 windows here, that's only done when they are really entered. |
1121 When the |:tab| modifier is used new windows are opended in a | 1128 When the |:tab| modifier is used new windows are opened in a |
1122 new tab, up to 'tabpagemax'. | 1129 new tab, up to 'tabpagemax'. |
1123 | 1130 |
1124 Note: All the commands above that start editing another buffer, keep the | 1131 Note: All the commands above that start editing another buffer, keep the |
1125 'readonly' flag as it was. This differs from the ":edit" command, which sets | 1132 'readonly' flag as it was. This differs from the ":edit" command, which sets |
1126 the 'readonly' flag each time the file is read. | 1133 the 'readonly' flag each time the file is read. |