home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim45os2.zip / vim-4.5 / doc / vim_win.txt < prev    next >
Text File  |  1996-10-07  |  23KB  |  569 lines

  1. *vim_win.txt*   For Vim version 4.5.  Last modification: 1996 Aug 6
  2.  
  3. Editing with multiple windows and buffers.
  4.  
  5. The commands which have been added to use multiple windows and buffers are
  6. explained here.  Additionally, there are explanations for commands that work
  7. differently when used in combination with more than one window.
  8.  
  9.  
  10. A window is a viewport onto a buffer.  You can use multiple windows on one
  11. buffer, or several windows on different buffers.
  12.  
  13. A buffer is a file loaded into memory for editing.  The original file remains
  14. unchanged until you write the buffer to the file.
  15.  
  16. A buffer can be in one of three states:
  17.  
  18.                     *active_buffer*
  19. active:   The buffer is displayed in a window.  If there is a file for this
  20.       buffer, it has been read into the buffer.  The buffer may have been
  21.       modified.
  22.                     *hidden_buffer*
  23. hidden:   The buffer is not displayed.  If there is a file for this buffer, it
  24.           has been read into the buffer.  The buffer may have been modified.
  25.                     *inactive_buffer*
  26. inactive: The buffer is not displayed and does not contain anything.  Options
  27.           for the buffer are remembered if the file was once loaded.
  28.  
  29. In a table:
  30.  
  31. state        displayed    loaded        ":buffers"
  32.         in window            shows
  33. active          yes         yes          ' '
  34. hidden          no         yes          'h'
  35. inactive      no         no          '-'
  36.  
  37.  
  38. Starting Vim
  39. ------------
  40.  
  41. By default, Vim starts with one window, just like Vi.
  42.  
  43. The "-o" argument to Vim can be used to open a window for each file in the
  44. argument list: "Vim -o file1 file2 file3" will open three windows.
  45.  
  46. "-oN", where N is a decimal number, opens N windows.  If there are more
  47. filenames than windows, only N windows are opened and some files do not get a
  48. window.  If there are more windows than filenames, the last few windows will
  49. be editing empty buffers.
  50.  
  51. If there are many filenames, the windows will become very small.  You might
  52. want to set the 'winheight' option to create a workable situation.
  53.  
  54. Buf/Win Enter/Leave autocommands are not executed when opening the new windows
  55. and reading the files, that's only done when they are really entered.
  56.  
  57.                             *status_line*
  58. A status line will be used to separate windows.  The 'laststatus' option tells
  59. when the last window also has a status line:
  60.     'laststatus' = 0    never a status line
  61.     'laststatus' = 1    status line if there is more than one window
  62.     'laststatus' = 2    always a status line
  63. Normally, inversion is used to display the status line.  This can be changed
  64. with the 's' character in the 'highlight' option.  For example, "sb" sets it to
  65. bold characters.  If no highlighting is used for the status line ("sn"), the
  66. '=' character is used.  If the mouse is supported and enabled with the 'mouse'
  67. option, a status line can be dragged to resize windows.
  68.  
  69. Note: If you expect your status line to be in reverse video and it isn't,
  70. check if the 'highlight' option contains "si".  In version 3.0, this meant to
  71. invert the status line.  Now it should be "sr", reverse the status line, as
  72. "si" now stands for italic!  If italic is not available on your terminal, the
  73. status line is inverted anyway; you will only see this problem on terminals
  74. that have termcap codes for italics.
  75.  
  76.  
  77. Opening a new window
  78. --------------------
  79.  
  80. CTRL-W s                        *CTRL-W_s*
  81. CTRL-W S                        *CTRL-W_S*
  82. CTRL-W CTRL-S                        *CTRL-W_CTRL-S*
  83. :[N]sp[lit]                        *:sp* *:split*
  84.         Split current window in two.  The result is two viewports on
  85.         the same file.  Make new window N high (default is to use half
  86.         the height of the current window).  Reduces the current window
  87.         height to create room (and others, if the 'equalalways' option
  88.         is set).  (Note: CTRL-S does not work on all terminals).
  89.  
  90. CTRL-W n                        *CTRL-W_n*
  91. CTRL-W CTRL_N                        *CTRL-W_CTRL-N*
  92. :[N]new                            *:new*
  93.         Create a new window and start editing an empty file in it.
  94.         Make new window N high (default is to use half the existing
  95.         height).  Reduces the current window height to create room (and
  96.         others, if the 'equalalways' option is set).
  97.  
  98. :[N]new [+command] {file}
  99. :[N]split [+command] {file}                *:split_f*
  100.         Create a new window and start editing file {file} in it.  If
  101.         [+command] is given, execute the command when the file has
  102.         been loaded.  Make new window N high (default is to use half
  103.         the existing height).  Reduces the current window height to
  104.         create room (and others, if the 'equalalways' option is set).
  105.  
  106. :[N]sv[iew] [+command] {file}                *:sv* *:sview*
  107.         Same as ":split", but set 'readonly' option for this buffer.
  108.  
  109. CTRL-W CTRL-^                    *CTRL-W_CTRL-^* *CTRL-W_^*
  110. CTRL-W ^    Does ":split #", split window in two and edit alternate file.
  111.         When a count is given, it becomes ":split #N", split window
  112.         and edit buffer N.
  113.  
  114. Closing a window
  115. ----------------
  116.  
  117. CTRL-W q                        *CTRL-W_q*
  118. CTRL-W CTRL-Q                        *CTRL-W_CTRL-Q*
  119. :quit        Quit current window, unless the buffer was changed and there
  120.         are no other windows for this buffer.  When quitting the last
  121.         window (not counting help windows), exit Vim. (Note: CTRL-Q
  122.         does not work on all terminals)
  123.  
  124. :quit!        Quit current window.  If this was the last window for a buffer,
  125.         any changes to that buffer are lost.  When quitting the last
  126.         window (not counting help windows), exit Vim.
  127.  
  128. CTRL-W CTRL-C                    *CTRL-W_CTRL-C*
  129. CTRL-W c                    *CTRL-W_c* *:clo* *:close*
  130. :clo[se]    Quit current window, unless it is the last window on the
  131.         screen.  The buffer becomes hidden (unless there is another
  132.         window editing it).  (Note: CTRL-W CTRL-C does not work).
  133.  
  134. CTRL-W o                        *CTRL-W_o*
  135. CTRL-W CTRL-O                    *CTRL-W_CTRL-O* *:on* *:only*
  136. :on[ly]        Make the current window the only one on the screen.  All other
  137.         windows are closed.  All buffers in the other windows become
  138.         hidden.
  139.  
  140.  
  141. Moving the cursor to other windows
  142. ----------------------------------
  143.  
  144. CTRL-W <Down>                    *CTRL-W_<Down>*
  145. CTRL-W CTRL-J                    *CTRL-W_CTRL-J* *CTRL-W_j*
  146. CTRL-W j    move cursor to Nth window below current one.
  147.  
  148. CTRL-W <Up>                    *CTRL-W_<Up>*
  149. CTRL-W CTRL-K                    *CTRL-W_CTRL-K* *CTRL-W_k*
  150. CTRL-W k    move cursor to Nth window above current one.
  151.  
  152. CTRL-W w                    *CTRL-W_w* *CTRL-W_CTRL-W*
  153. CTRL-W CTRL-W    Without count: move cursor to window below current one.  If
  154.         there is no window below, go to top window.
  155.         With count: go to Nth window.
  156.  
  157.                         *CTRL-W_W*
  158. CTRL-W W    Without count: move cursor to window above current one.  If
  159.         there is no window above, go to bottom window.
  160.         With count: go to Nth window.
  161.  
  162. CTRL-W t                    *CTRL-W_t* *CTRL-W_CTRL-T*
  163. CTRL-W CTRL-T    move cursor to top window.
  164.  
  165. CTRL-W b                    *CTRL-W_b* *CTRL-W_CTRL-B*
  166. CTRL-W CTRL-B    move cursor to bottom window.
  167.  
  168. CTRL-W p                    *CTRL-W_p* *CTRL-W_CTRL-P*
  169. CTRL-W CTRL-P    go to previous (last accessed) window.
  170.  
  171. If Visual mode is active and the new window is not for the same buffer, the
  172. Visual mode is ended.
  173.  
  174.  
  175. Moving windows around
  176. ---------------------
  177.  
  178. CTRL-W r                    *CTRL-W_r* *CTRL-W_CTRL-R*
  179. CTRL-W CTRL-R    Rotate windows downwards.  The first window becomes the second
  180.         one, the second one becomes the third one, etc.  The last
  181.         window becomes the first window.  The cursor remains in the
  182.         same window.
  183.  
  184.                         *CTRL-W_R*
  185. CTRL-W R    Rotate windows upwards.  The second window becomes the first
  186.         one, the third one becomes the second one, etc.  The first
  187.         window becomes the last window.  The cursor remains in the
  188.         same window.
  189.  
  190. CTRL-W x                    *CTRL-W_x* *CTRL-W_CTRL-X*
  191. CTRL-W CTRL-X    Without count: Exchange current window with next one.  If there
  192.         is no next window, exchange with previous window.
  193.         With count: Exchange current window with Nth window (first
  194.         window is 1).  The cursor is put in the other window.
  195.  
  196.  
  197. Window resizing
  198. ---------------
  199.  
  200.                         *CTRL-W_=*
  201. CTRL-W =    make all windows (almost) equally high.
  202.  
  203. :res[ize] -N                    *:res* *:resize* *CTRL-W_-*
  204. CTRL-W -    decrease current window height by N
  205.  
  206. :resize +N                    *CTRL-W_+*
  207. CTRL-W +    increase current window height by N
  208.  
  209. :resize [N]
  210. CTRL-W CTRL-_                    *CTRL-W_CTRL-_* *CTRL-W__*
  211. CTRL-W _    set current window height to N (default: highest possible)
  212.  
  213. z<nr><CR>    set current window height to nr
  214.  
  215. You can also resize the window by dragging a status line up or down with the
  216. mouse.  This only works if the version of Vim that is being used supports the
  217. mouse and the 'mouse' option has been set to enable it.
  218.  
  219. The option 'winheight' ('wh') is used to set the minimal window height of the
  220. current window.  This option is used each time another window becomes the
  221. current window.  If the option is '0', it is disabled.  Set 'winheight' to a
  222. very large value, e.g., '9999', to make the current window always fill all
  223. available space.  Set it to a reasonable value, e.g., '10', to make editing in
  224. the current window comfortable.
  225.  
  226. When the option 'equalalways' ('ea') is set, all the windows are automatically
  227. made the same size after splitting or closing a window.  If you don't set this
  228. option, splitting a window will reduce the size of the current window and
  229. leave the other windows the same.  When closing a window, the extra lines are
  230. given to the window above it.
  231.  
  232. The option 'commandheight' ('ch') is used to set the height of the command
  233. line.  If you are annoyed by the "Hit RETURN to continue" questions for long
  234. messages, set this option to 2 or 3.
  235.  
  236. If there is only one window, resizing that window will also change the command
  237. line height.  If there are several windows, resizing the current window will
  238. also change the height of the window below it (and sometimes the window above
  239. it).
  240.  
  241.  
  242. Exiting Vim with multiple windows or buffers
  243. --------------------------------------------
  244.  
  245.                             *:qa* *:qall*
  246. :qa[ll]        Exit Vim, unless there are some buffers which have been
  247.         changed.  (Use ":bmod" to go to the next modified buffer).
  248.  
  249. :qall!        Exit Vim.  Any changes to buffers are lost.
  250.  
  251. :wqa[ll]                    *:wqa* *:wqall* *:xa* *:xall*
  252. :xa[ll]        Write all changed buffers and exit Vim.  If there are buffers
  253.         without a file name, which are readonly or which cannot be
  254.         written for another reason, Vim is not quit.
  255.  
  256. :wqall!
  257. :xall!        Write all changed buffers, even the ones that are readonly,
  258.         and exit Vim.  If there are buffers without a file name or
  259.         which cannot be written for another reason, Vim is not quit.
  260.  
  261.  
  262. Writing with multiple buffers
  263. -----------------------------
  264.  
  265.                             *:wa* *:wall*
  266. :wa[ll]        Write all changed buffers.  Buffers without a file name or
  267.         which are readonly are not written.
  268.  
  269. :wa[ll]!    Write all changed buffers, even the ones that are readonly.
  270.         Buffers without a file name are not written.
  271.  
  272.  
  273. Overview of argument and buffer list commands
  274. ---------------------------------------------
  275.  
  276.       args list               buffer list       meaning
  277. 1. :[N]argument [N]    11. :[N]buffer [N]    to arg/buf N
  278. 2. :[N]next [file ..]    12. :[N]bnext [N]    to Nth next arg/buf
  279. 3. :[N]Next [N]        13. :[N]bNext [N]    to Nth previous arg/buf
  280. 4. :[N]previous    [N]    14. :[N]bprevious [N]    to Nth previous arg/buf
  281. 5. :rewind        15. :brewind        to first arg/buf
  282. 6. :last        16. :blast        to last arg/buf
  283. 7. :all            17. :ball        edit all args/buffers
  284.             18. :unhide        edit all loaded buffers
  285.             19. :[N]bmod [N]    to Nth modified buf
  286.  
  287.   split & args list       split & buffer list        meaning
  288. 21. :[N]sargument [N]   31. :[N]sbuffer [N]    split + to arg/buf N
  289. 22. :[N]snext [file ..] 32. :[N]sbnext [N]      split + to Nth next arg/buf
  290. 23. :[N]sNext [N]       33. :[N]sbNext [N]      split + to Nth previous arg/buf
  291. 24. :[N]sprevious [N]   34. :[N]sbprevious [N]  split + to Nth previous arg/buf
  292. 25. :srewind            35. :sbrewind           split + to first arg/buf
  293. 26. :slast              36. :sblast             split + to last arg/buf
  294. 27. :sall        37: :sball        edit all args/buffers
  295.             38. :sunhide        edit all loaded buffers
  296.                         39. :[N]sbmod [N]       split + to Nth modified buf
  297.  
  298. 40. :args        list of arguments
  299. 41. :buffers        list of buffers
  300.  
  301. The meaning of [N] depends on the command:
  302.  [N] is number of buffers to go forward/backward on ?2, ?3, and ?4
  303.  [N] is an argument number, defaulting to current argument, for 1 and 21
  304.  [N] is a buffer number, defaulting to current buffer, for 11 and 31
  305.  [N] is a count for 19 and 39
  306.  
  307. Note: ":next" is an exception, because it must accept a list of file names
  308. for compatibility with Vi.
  309.  
  310.  
  311. The argument list and multiple windows
  312. --------------------------------------
  313.  
  314. The current position in the argument list can be different for each window.
  315. Remember that when doing ":e file", the position in the argument list stays
  316. the same, but you are not editing the file at that position.  To indicate
  317. this, the file message (and the title, if you have one) shows
  318. "(file (N) of M)", where "(N)" is the current position in the file list, and
  319. "M" the number of files in the file list.
  320.  
  321. All the entries in the argument list are added to the buffer list.  Thus, you
  322. can also get to them with the buffer list commands, like ":bnext".
  323.  
  324. :[N]al[l] [N]                    *:al* *:all* *:sal* *:sall*
  325. :[N]sal[l] [N]    Rearrange the screen to open one window for each argument.
  326.         All other windows are closed (buffers become hidden).  When a
  327.         count is given, this is the maximum number of windows to open.
  328.         Buf/Win Enter/Leave autocommands are not executed for the new
  329.         windows here, that's only done when they are really entered.
  330.  
  331. :[N]sa[rgument][!] [N]                *:sa* *:sargument*
  332.         Short for ":split | argument [N]": split window and go to Nth
  333.         argument.  But when there is no such argument, the window is
  334.         not split.
  335.  
  336. :[N]sn[ext][!] [file ..]                *:sn* *:snext*
  337.         Short for ":split | [N]next": split window and go to Nth next
  338.         argument.  But when there is no next file, the window is not
  339.         split.
  340.  
  341. :[N]spr[evious][!] [N]                *:spr* *:sprevious*
  342. :[N]sN[ext][!] [N]                *:sN* *:sNext*
  343.         Short for ":split | [N]Next": split window and go to Nth
  344.         previous argument.  But when there is no previous file, the
  345.         window is not split.
  346.  
  347.                         *:sr* *:srewind*
  348. :sr[ewind][!]    Short for ":split | rewind": split window and go to first
  349.         argument.  But when there is no argument list, the window is
  350.         not split.
  351.  
  352.                         *:sla* *:slast*
  353. :sla[st][!]    Short for ":split | last": split window and go to last
  354.         argument.  But when there is no argument list, the window is
  355.         not split.
  356.  
  357.  
  358. Tag or file name under the cursor
  359. ---------------------------------
  360.  
  361.                             *:sta* *:stag*
  362. :sta[g][!] [tagname]
  363.         Does ":tag[!] [tagname]" and splits the window for the found
  364.         tag.  See also |:tag|.
  365.  
  366. CTRL-W ]                    *CTRL-W_]* *CTRL-W_CTRL-]*
  367. CTRL-W CTRL-]    split current window in two.  Use identifier under cursor as a
  368.         tag and jump to it in the new upper window.  Make new window N
  369.         high.
  370.  
  371. CTRL-W f                    *CTRL-W_f* *CTRL-W_CTRL-F*
  372. CTRL-W CTRL-F    split current window in two.  Edit file name under cursor.
  373.         Like ":split ]f", but window isn't split if the file does not
  374.         exist.  Uses the 'path' variable as a list of directory names
  375.         where to look for the file.  Also the path for current file is
  376.         used to search for the file name.  If the name is a hypertext
  377.         link that looks like "type://machine/path", only "/path" is
  378.         used.
  379.  
  380.  
  381. Using hidden buffers
  382. --------------------
  383.  
  384. A hidden buffer is not displayed in a window, but is still loaded into memory.
  385. This makes it possible to jump from file to file, without the need to read or
  386. write the file every time and having to keep the file in a window.
  387.  
  388. If the option 'hidden' ('hid') is set, abandoned buffers are kept for all
  389. commands that start editing another file: ":edit", ":next", ":tag", etc.  The
  390. commands that move through the buffer list make the current buffer hidden
  391. although the 'hidden' option is not set (see below).
  392.  
  393. You can make a hidden buffer not hidden by starting to edit it with any
  394. command.  Or by deleting it with the ":bdelete" command.
  395.  
  396.                         *hidden_quit*
  397. When you try to quit Vim while there is a hidden, modified buffer, you will
  398. get an error message and Vim will make that buffer the current buffer.  You
  399. can then decide to write this buffer (":wq") or quit without writing (":q!").
  400. Be careful: there may be more hidden, modified buffers!
  401.  
  402. :files                        *:files*
  403. :buffers                    *:buffers* *:ls*
  404. :ls        Show all buffers.  Example:
  405.  
  406.             1 #h  "/test/text"        line 1
  407.             2  -  "asdf"            line 0
  408.             3 % + "version.c"        line 1
  409.  
  410.         Each buffer has a unique number.  That number will not change,
  411.         so you can always go to a specific buffer with ":buffer N" or
  412.         "N CTRL-^", where N is the buffer number.
  413.  
  414.          '-' indicates a buffer that is not loaded.  'h' indicates a
  415.         hidden buffer: It is loaded, but currently not displayed in a
  416.         window.  '%' indicates the buffer in the current window.  '#'
  417.         indicates the alternate buffer for ":e #" or CTRL-^.  '+'
  418.         indicates a modified buffer.
  419.  
  420. :[N]bd[elete]                    *:bd* *:bdelete*
  421. :bd[elete] [N]
  422.         Unload buffer [N] (default: current buffer) and delete it from
  423.         the buffer list.  If the buffer was changed, this fails.  The
  424.         file remains unaffected.  Any windows for this buffer are
  425.         closed.  If buffer [N] is the current buffer, the next buffer
  426.         (displayed in a window) becomes the current buffer.
  427.  
  428. :[N]bdelete!
  429. :bdelete! [N]
  430.         Unload buffer [N] (default: current buffer) and delete it from
  431.         the buffer list.  If the buffer was changed the changes are
  432.         lost.  The file remains unaffected.  Any windows for this
  433.         buffer are closed.  If buffer [N] is the current buffer, the
  434.         next buffer (displayed in a window) becomes the current
  435.         buffer.
  436.  
  437. :bdelete[!] {bufname}
  438.         Like ":bdelete[!] [N]", but buffer given by name.  Note that a
  439.         buffer whose name is a number cannot be referenced by that
  440.         name; use the buffer number instead.  Insert a backslash
  441.         before a space in a buffer name.
  442.  
  443. :N,Mbdelete[!]    do ":bdelete[!]" for all buffers in the range N to M
  444.         (inclusive).
  445.  
  446. :bdelete[!] N1 N2 ...
  447.         do ":bdelete[!]" for buffer N1, N2, etc.  The arguments can be
  448.         buffer numbers or buffer names (but not buffer names that are
  449.         a number).  Insert a backslash before a space in a buffer
  450.         name.
  451.  
  452. :[N]bun[load]                    *:bun* *:bunload*
  453. :bun[load] [N]
  454.         Unload buffer [N] (default: current buffer).  The memory
  455.         allocated for this buffer will be freed.  The buffer remains
  456.         in the buffer list.  If the buffer was changed, this fails.
  457.         Any windows for this buffer are closed.  If buffer [N] is the
  458.         current buffer, the next buffer (displayed in a window)
  459.         becomes the current buffer.
  460.  
  461. :[N]bunload!
  462. :bunload! [N]
  463.         Unload buffer [N] (default: current buffer).  The memory
  464.         allocated for this buffer will be freed.  The buffer remains
  465.         in the buffer list.  If the buffer was changed, the changes
  466.         are lost.  Any windows for this buffer are closed.  If buffer
  467.         [N] is the current buffer, the next buffer (displayed in a
  468.         window) becomes the current buffer.
  469.  
  470. :bunload[!] {bufname}
  471.         Like ":bunload[!] [N]", but buffer given by name.  Note that a
  472.         buffer whose name is a number cannot be referenced by that
  473.         name; use the buffer number instead.  Insert a backslash
  474.         before a space in a buffer name.
  475.  
  476. :N,Mbunload[!]    do ":bunload[!]" for all buffers in the range N to M
  477.         (inclusive).
  478.  
  479. :bunload[!] N1 N2 ...
  480.         do ":bunload[!]" for buffer N1, N2, etc.  The arguments can be
  481.         buffer numbers or buffer names (but not buffer names that are
  482.         a number).  Insert a backslash before a space in a buffer
  483.         name.
  484.  
  485. :[N]b[uffer] [N]                    *:b* *:buffer*
  486.         Edit buffer [N] from the buffer list.  If [N] is not given,
  487.         the current buffer remains being edited.
  488.  
  489. :[N]b[uffer] {filename}
  490.         Edit buffer for {filename} from the buffer list.
  491.  
  492. :[N]sb[uffer] [N]                    *:sb* *:sbuffer*
  493.         Split window and edit buffer [N] from the buffer list.  If [N]
  494.         is not given, the current buffer is edited.
  495.  
  496. :[N]sb[uffer] {filename}
  497.         Split window and edit buffer for {filename} from the buffer
  498.         list.
  499.  
  500.                             *:bn* *:bnext*
  501. :[N]bn[ext] [N]
  502.         Go to [N]th next buffer in buffer list.  [N] defaults to one.
  503.         Wraps around the end of the buffer list.
  504.  
  505.                             *:sbn* *:sbnext*
  506. :[N]sbn[ext] [N]
  507.         Split window and go to [N]th next buffer in buffer list.
  508.         Wraps around the end of the buffer list.
  509.  
  510. :[N]bN[ext] [N]                *:bN* *:bNext* *:bp* *:bprevious*
  511. :[N]bp[revious] [N]
  512.         Go to [N]th previous buffer in buffer list.  [N] defaults to
  513.         one.  Wraps around the start of the buffer list.
  514.  
  515. :[N]sbN[ext] [N]            *:sbN* *:sbNext* *:sbp* *:sbprevious*
  516. :[N]sbp[revious] [N]
  517.         Split window and go to [N]th previous buffer in buffer list.
  518.         Wraps around the start of the buffer list.
  519.  
  520.                             *:br* *:brewind*
  521. :br[ewind]    Go to first buffer in buffer list.
  522.  
  523.                             *:sbr* *:sbrewind*
  524. :sbr[ewind]    Split window and go to first buffer in buffer list
  525.  
  526.                             *:bl* *:blast*
  527. :bl[ast]    Go to last buffer in buffer list.
  528.  
  529.                             *:sbl* *:sblast*
  530. :sbl[ast]    Split window and go to last buffer in buffer list.
  531.  
  532. :[N]bm[odified] [N]                    *:bm* *:bmodified*
  533.         Go to [N]th next modified buffer in buffer list.
  534.  
  535. :[N]sbm[odified] [N]                    *:sbm* *:sbmodified*
  536.         Split window and go to [N]th next modified buffer in buffer
  537.         list.
  538.  
  539. :[N]unh[ide] [N]            *:unh* *:unhide* *:sun* *:sunhide*
  540. :[N]sun[hide] [N]
  541.         Rearrange the screen to open one window for each loaded buffer
  542.         in the buffer list.  When a count is given, this is the
  543.         maximum number of windows to open.
  544.  
  545. :[N]ba[ll] [N]                    *:ba* *:ball* *:sba* *:sball*
  546. :[N]sba[ll] [N]    Rearrange the screen to open one window for each buffer in
  547.         the buffer list.  When a count is given, this is the maximum
  548.         number of windows to open.  Buf/Win Enter/Leave autocommands
  549.         are not executed for the new windows here, that's only done
  550.         when they are really entered.
  551.  
  552.  
  553. Memory usage limits
  554. -------------------
  555.  
  556. The option 'maxmem' ('mm') is used to set the maximum memory used for one
  557. buffer (in kilobytes).  'maxmemtot' is used to set the maximum memory used for
  558. all buffers (in kilobytes).  The defaults depend on the system used.  For the
  559. Amiga and MS-DOS, 'maxmemtot' is set depending on the amount of memory
  560. available.  If you don't like Vim to swap to a file, set 'maxmem' and
  561. 'maxmemtot' to a very large value.  The swapfile will then only be used for
  562. recovery.  If you don't want a swapfile at all, set 'updatecount' to 0, or
  563. use the "-n" argument when starting Vim.  Note that the 'maxmem' option is
  564. only used when a buffer is created.  Changing this option does not affect
  565. buffers that have already been loaded.  Thus you can set it to different
  566. values for different files.  'maxmemtot' works always.
  567.  
  568.  vim:ts=8:sw=8:js:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":
  569.