bufexplorer.txt 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. *bufexplorer.txt* Buffer Explorer Last Change: 05 Mar 2025
  2. Buffer Explorer *buffer-explorer* *bufexplorer*
  3. Version 7.8.0
  4. Plugin for easily exploring (or browsing) Vim|:buffers|.
  5. |bufexplorer-installation| Installation
  6. |bufexplorer-usage| Usage
  7. |bufexplorer-windowlayout| Window Layout
  8. |bufexplorer-customization| Customization
  9. |bufexplorer-changelog| Change Log
  10. |bufexplorer-todo| Todo
  11. |bufexplorer-credits| Credits
  12. |bufexplorer-copyright| Copyright
  13. For Vim version 7.0 and above.
  14. This plugin is only available if 'compatible' is not set.
  15. {Vi does not have any of this}
  16. ==============================================================================
  17. INSTALLATION *bufexplorer-installation*
  18. To install:
  19. - Download the bufexplorer.zip from one of the following places:
  20. https://github.com/jlanzarotta/bufexplorer
  21. http://www.vim.org/scripts/script.php?script_id=42
  22. or use a package manager like vim-plug, Vundle, etc..
  23. - Extract the zip archive into your runtime directory.
  24. The archive contains plugin/bufexplorer.vim, and doc/bufexplorer.txt.
  25. - Start Vim or goto an existing instance of Vim.
  26. - Execute the following command:
  27. >
  28. :helptag <your runtime directory>/doc
  29. <
  30. This will generate all the help tags for any file located in the doc
  31. directory.
  32. ==============================================================================
  33. USAGE *bufexplorer-usage*
  34. To start exploring in the current window, use: >
  35. <Leader>be or :BufExplorer or Your custom key mapping
  36. To toggle bufexplorer on or off in the current window, use: >
  37. <Leader>bt or :ToggleBufExplorer or Your custom key mapping
  38. To start exploring in a newly split horizontal window, use: >
  39. <Leader>bs or :BufExplorerHorizontalSplit or Your custom key mapping
  40. To start exploring in a newly split vertical window, use: >
  41. <Leader>bv or :BufExplorerVerticalSplit or Your custom key mapping
  42. If you would like to use something other than the default leader key - '\' -
  43. you may simply change the leader (see |mapleader|).
  44. When <Leader>bs or <Leader>bv is issued, bufexplorer opens in either a
  45. horizontally or vertically split window. By issuing either of these commands,
  46. the user is telling bufexplorer that they want to split the window and have
  47. bufexplorer show the buffer they are about to select (from the bufexplorer
  48. windows) in the newly split window. When <Leader>be is issued, bufexplorer
  49. opens the bufexplorer contents in the current window and the buffer the user
  50. selects is opened in the current window.
  51. Note: If the current buffer is modified when bufexplorer started, the current
  52. window is always split and the new bufexplorer is displayed in that new
  53. window.
  54. Commands to use once exploring:
  55. <F1> Toggle help information.
  56. <enter> Opens the buffer that is under the cursor into the current
  57. window.
  58. <leftmouse> Opens the buffer that is under the cursor into the current
  59. window.
  60. <shift-enter> Opens the buffer that is under the cursor in another tab.
  61. a Toggles whether you are taken to the active window when
  62. selecting a buffer or not.
  63. b Fast buffer switching with b<any bufnum>.
  64. B Works in association with the |ShowTabBuffer| option. If
  65. |ShowTabBuffer| is set to 1, this toggles if BufExplorer is to
  66. only store the most recent tab for this buffer or not.
  67. d |:delete| the buffer under the cursor from the list. The
  68. buffer's 'buflisted' is cleared. This allows for the buffer to
  69. be displayed again using the 'show unlisted' command.
  70. D |:wipeout| the buffer under the cursor from the list. When a
  71. buffer is wiped, it will not be shown when unlisted buffers are
  72. displayed.
  73. F Open selected buffer in another window above the current.
  74. f Open selected buffer in another window below the current.
  75. o Opens the buffer that is under the cursor into the current
  76. window.
  77. p Toggles the showing of a split filename/pathname.
  78. q Exit/Close bufexplorer.
  79. r Reverses the order the buffers are listed in.
  80. R Toggles relative path/absolute path.
  81. s Cycle thru how the buffers are listed. Either by buffer
  82. number, file name, file extension, most recently used (MRU), or
  83. full path.
  84. S Cycle thru how the buffers are listed, in reverse order.
  85. Either by buffer number, file name, file extension, most
  86. recently used (MRU), or full path.
  87. t Opens the buffer that is under the cursor in another tab.
  88. T Toggles to show only buffers for this tab or not.
  89. u Toggles the showing of "unlisted" buffers.
  90. V Open the selected buffer in another window on the left of the current.
  91. v Open the selected buffer in another window on the right of the current.
  92. Once invoked, Buffer Explorer displays a sorted list (MRU is the default
  93. sort method) of all the buffers that are currently opened. You are then
  94. able to move the cursor to the line containing the buffer's name you are
  95. wanting to act upon. Once you have selected the buffer you would like,
  96. you can then either open it, close it (delete), resort the list, reverse
  97. the sort, quit exploring and so on...
  98. ===============================================================================
  99. WINDOW LAYOUT *bufexplorer-windowlayout*
  100. -------------------------------------------------------------------------------
  101. " Press <F1> for Help
  102. " Sorted by mru | Locate buffer | Absolute Split path
  103. "=
  104. 1 %a bufexplorer.txt C:\Vim\vimfiles\doc line 87
  105. 2 # bufexplorer.vim c:\Vim\vimfiles\plugin line 1
  106. -------------------------------------------------------------------------------
  107. | | | | |
  108. | | | | +-- Current Line #.
  109. | | | +-- Relative/Full Path
  110. | | +-- Buffer Name.
  111. | +-- Buffer Attributes. See |:buffers| for more information.
  112. +-- Buffer Number. See |:buffers| for more information.
  113. ===============================================================================
  114. CUSTOMIZATION *bufexplorer-customization*
  115. If you do not like the default key mappings of <Leader>be, <Leader>bs, and
  116. <Leader>bv, you can override bufexplorer's default mappings by setting up
  117. something like the following in your vimrc file:
  118. nnoremap <silent> <F11> :BufExplorer<CR>
  119. nnoremap <silent> <s-F11> :ToggleBufExplorer<CR>
  120. nnoremap <silent> <m-F11> :BufExplorerHorizontalSplit<CR>
  121. nnoremap <silent> <c-F11> :BufExplorerVerticalSplit<CR>
  122. *g:bufExplorerChgWin*
  123. If set, bufexplorer will bring up the selected buffer in the window specified
  124. by g:bufExplorerChgWin.
  125. *g:bufExplorerDefaultHelp*
  126. To control whether the default help is displayed or not, use: >
  127. let g:bufExplorerDefaultHelp=0 " Do not show default help.
  128. let g:bufExplorerDefaultHelp=1 " Show default help.
  129. The default is to show the default help.
  130. *g:bufExplorerDisableDefaultKeyMapping*
  131. To control whether the default key mappings are enabled or not, use: >
  132. let g:bufExplorerDisableDefaultKeyMapping=0 " Do not disable mapping.
  133. let g:bufExplorerDisableDefaultKeyMapping=1 " Disable mapping.
  134. The default is NOT to disable the default key mapping.
  135. *g:bufExplorerDetailedHelp*
  136. To control whether detailed help is display by, use: >
  137. let g:bufExplorerDetailedHelp=0 " Do not show detailed help.
  138. let g:bufExplorerDetailedHelp=1 " Show detailed help.
  139. The default is NOT to show detailed help.
  140. *g:bufExplorerFindActive*
  141. To control whether you are taken to the active window when selecting a buffer,
  142. use: >
  143. let g:bufExplorerFindActive=0 " Do not go to active window.
  144. let g:bufExplorerFindActive=1 " Go to active window.
  145. The default is to be taken to the active window.
  146. *g:bufExplorerFuncRef*
  147. When a buffer is selected, the functions specified either singly or as a list
  148. will be called.
  149. *g:bufExplorerOnlyOneTab*
  150. To control whether a buffer should be shown on any tab where it has ever been
  151. used or only on the most-recently-used (MRU) tab (i.e., the tab where the buffer
  152. was most recently used), use: >
  153. let g:bufExplorerOnlyOneTab=0 " Show in all tabs where buffer was used.
  154. let g:bufExplorerOnlyOneTab=1 " Show buffer only in MRU tab.
  155. The default is `1` (show a buffer only on the MRU tab).
  156. This setting applies only when |g:bufExplorerShowTabBuffer| is true (i.e., when
  157. BufExplorer shows only those buffers used in the current tab instead of showing
  158. all buffers).
  159. *g:bufExplorerReverseSort*
  160. To control whether to sort the buffer in reverse order or not, use: >
  161. let g:bufExplorerReverseSort=0 " Do not sort in reverse order.
  162. let g:bufExplorerReverseSort=1 " Sort in reverse order.
  163. The default is NOT to sort in reverse order.
  164. *g:bufExplorerShowDirectories*
  165. Directories usually show up in the list from using a command like ":e .".
  166. To control whether to show directories in the buffer list or not, use: >
  167. let g:bufExplorerShowDirectories=0 " Do not show directories.
  168. let g:bufExplorerShowDirectories=1 " Show directories.
  169. The default is to show directories.
  170. *g:bufExplorerShowNoName*
  171. To control whether to show "No Name" buffers or not, use: >
  172. let g:bufExplorerShowNoName=0 " Do not "No Name" buffers.
  173. let g:bufExplorerShowNoName=1 " Show "No Name" buffers.
  174. The default is to NOT show "No Name buffers.
  175. *g:bufExplorerShowRelativePath*
  176. To control whether to show absolute paths or relative to the current
  177. directory, use: >
  178. let g:bufExplorerShowRelativePath=0 " Show absolute paths.
  179. let g:bufExplorerShowRelativePath=1 " Show relative paths.
  180. The default is to show absolute paths.
  181. *g:bufExplorerShowTabBuffer*
  182. To control whether or not to show buffers on for the specific tab or not, use: >
  183. let g:bufExplorerShowTabBuffer=0 " No.
  184. let g:bufExplorerShowTabBuffer=1 " Yes.
  185. The default is not to show.
  186. *g:bufExplorerShowUnlisted*
  187. To control whether to show unlisted buffers or not, use: >
  188. let g:bufExplorerShowUnlisted=0 " Do not show unlisted buffers.
  189. let g:bufExplorerShowUnlisted=1 " Show unlisted buffers.
  190. The default is to NOT show unlisted buffers.
  191. *g:bufExplorerSortBy*
  192. To control what field the buffers are sorted by, use: >
  193. let g:bufExplorerSortBy='extension' " Sort by file extension.
  194. let g:bufExplorerSortBy='fullpath' " Sort by full file path name.
  195. let g:bufExplorerSortBy='mru' " Sort by most recently used.
  196. let g:bufExplorerSortBy='name' " Sort by the buffer's name.
  197. let g:bufExplorerSortBy='number' " Sort by the buffer's number.
  198. The default is to sort by mru.
  199. *g:bufExplorerSplitBelow*
  200. To control where the new split window will be placed above or below the
  201. current window, use: >
  202. let g:bufExplorerSplitBelow=1 " Split new window below current.
  203. let g:bufExplorerSplitBelow=0 " Split new window above current.
  204. The default is to use whatever is set by the global &splitbelow
  205. variable.
  206. *g:bufExplorerSplitHorzSize*
  207. To control the size of the new horizontal split window. use: >
  208. let g:bufExplorerSplitHorzSize=n " New split window is n rows high.
  209. let g:bufExplorerSplitHorzSize=0 " New split window size set by Vim.
  210. The default is 0, so that the size is set by Vim.
  211. *g:bufExplorerSplitOutPathName*
  212. To control whether to split out the path and file name or not, use: >
  213. let g:bufExplorerSplitOutPathName=1 " Split the path and file name.
  214. let g:bufExplorerSplitOutPathName=0 " Don't split the path and file
  215. " name.
  216. The default is to split the path and file name.
  217. *g:bufExplorerSplitRight*
  218. To control where the new vsplit window will be placed to the left or right of
  219. current window, use: >
  220. let g:bufExplorerSplitRight=0 " Split left.
  221. let g:bufExplorerSplitRight=1 " Split right.
  222. The default is to use the global &splitright.
  223. *g:bufExplorerSplitVertSize*
  224. To control the size of the new vertical split window, use: >
  225. let g:bufExplorerSplitVertSize=n " New split window is n columns wide.
  226. let g:bufExplorerSplitVertSize=0 " New split windows size set by Vim.
  227. The default is 0, so that the size is set by Vim.
  228. *g:bufExplorerShowTerminal*
  229. To control whether terminal buffers are displayed in BufExplorer, use: >
  230. let g:bufExplorerShowTerminal=1 " Show terminal buffers.
  231. let g:bufExplorerShowTerminal=0 " Don't show terminal buffers.
  232. The default is 1, to show the terminal buffers.
  233. *g:bufExplorerVersionWarn*
  234. To control whether to warning about Vim version or not, use: >
  235. let g:bufExplorerVersionWarn=1 " Warn if version conflict.
  236. let g:bufExplorerVersionWarn=0 " Do not warn if version conflict.
  237. The default is 1.
  238. ===============================================================================
  239. CHANGE LOG *bufexplorer-changelog*
  240. 7.8.0 March 05, 2025
  241. After all these many years, bufexplorer now requires Vim version 7.4 or
  242. greater.
  243. 7.7.0 March 05, 2025
  244. What's Changed
  245. - Another Major patch implemented by Dr. Michael Henry.
  246. https://github.com/jlanzarotta/bufexplorer/pull/121
  247. * Fix issue Bufexplorer MRU sort doesn't work properly if using
  248. restore_session.vim #8 "Bufexplorer MRU sort doesn't work properly if
  249. using restore_session.vim".
  250. * Fix issue Bufexplorer interferes with the startinsert! command #87
  251. "Bufexplorer interferes with the startinsert! command".
  252. * Treat unlisted buffers as least-recently-used instead of
  253. most-recently-used in the MRU sort order.
  254. * Replace the undocumented m key (intended for debugging MRU logic)
  255. with the BufExplorer_eval() and BufExplorer_execute() general
  256. debugging features.
  257. * Improve speed of MRU tracking.
  258. 7.6.0 February 17, 2025
  259. What's Changed
  260. - Another Major patch implemented by Dr. Michael Henry.
  261. https://github.com/jlanzarotta/bufexplorer/pull/119
  262. * Sorting by fullname now depends only on the buffer's absolute path
  263. using a new sorting mechanism. Other sort modes have been converted to
  264. use this mechanism as well.
  265. * Display of directory buffers is now suppressed when
  266. g:bufExplorerShowDirectories == 0 as described in the BufExplorer
  267. documentation.
  268. * Path calculations for the elements in s:types have been normalized.
  269. fullpath now has simplify() applied to normalize paths like
  270. dir/../file. Trailing path separators for directories have been
  271. removed. The shortname <DIRECTORY> for directories has been
  272. eliminated; instead, the directory's basename is used as is done for
  273. files (except for root directories, where the trailing path separator
  274. cannot be removed; a shortname of . is used for this case). A new
  275. element, homepath, has been added to s.types; this is fullpath
  276. shortened for paths in $HOME and without the trailing path separator.
  277. Other displayable paths (path, relativepath, relativename) are
  278. similarly shortened for paths in $HOME.
  279. * Textual substitution of $HOME -> ~ in paths has been eliminated. This
  280. substitution could occur anywhere in the path, not just at the start,
  281. causing undesirable anomalies. Shortening for paths in $HOME is now
  282. done via homename and associated variables from s:types.
  283. * If the devicons plugin is installed, a buffer's buf.isdir status has
  284. been added as a parameter passed to that plugin, allowing the plugin
  285. to supply a directory icon for buffer directories.
  286. * Avoid calculating buffer details until they are needed for display.
  287. Users who don't want to see unlisted buffers shouldn't have to pay
  288. for the expensive work of calculating buffer details for unlisted
  289. buffers, only to have that information ignored. This resolves
  290. bufexplorer is slow to open with many unlisted buffers.
  291. https://github.com/jlanzarotta/bufexplorer/issues/20
  292. 7.5.0 February 16, 2025
  293. What's Changed
  294. - Major patch implemented by Dr. Michael Henry.
  295. https://github.com/jlanzarotta/bufexplorer/pull/118
  296. Significant rework and restructuring of the s:SelectBuffer() method to
  297. demonstrate behaviors described in Github issue #117.
  298. https://github.com/jlanzarotta/bufexplorer/issues/117
  299. This patch includes fixes which also resolves:
  300. - Github issue #81. Previous buffer duplicated in split after openning
  301. new buffer in tab.
  302. https://github.com/jlanzarotta/bufexplorer/issues/81
  303. - Github issue #65. bv plus t does weird things.
  304. https://github.com/jlanzarotta/bufexplorer/issues/65
  305. - Github issue #52. Find Active Window not working as expected.
  306. https://github.com/jlanzarotta/bufexplorer/issues/52
  307. 7.4.28 November 5, 2024
  308. - Thanks to GitHub user jsvia, for the addition of the new
  309. bufExplorerShowTerminal feature. Please refer to the documentation
  310. for complete information.
  311. 7.4.27 May 30, 2024
  312. - Thanks to GitHub user NotNormallyAGitUser, for the recommendation to
  313. change the display of the relative path to replace $HOME with "~".
  314. This save valuable screen real estate.
  315. 7.4.26 May 01, 2023
  316. What's Changed
  317. - wipe explorer buffer on hide by @basharh in
  318. https://github.com/jlanzarotta/bufexplorer/pull/111
  319. New Contributors
  320. - @basharh made their first contribution in
  321. https://github.com/jlanzarotta/bufexplorer/pull/111
  322. Full Changelog
  323. https://github.com/jlanzarotta/bufexplorer/compare/v.7.4.25...v7.4.26
  324. 7.4.25 September 20, 2022
  325. What's Changed
  326. - Fix MRU sort order after loading vim session by @mmrwoods in
  327. https://github.com/jlanzarotta/bufexplorer/pull/107
  328. New Contributors
  329. - @mmrwoods made their first contribution in
  330. https://github.com/jlanzarotta/bufexplorer/pull/107
  331. Full Changelog
  332. https://github.com/jlanzarotta/bufexplorer/compare/v7.4.24...v.7.4.25
  333. 7.4.24 May 03, 2022
  334. Updated copyright notice.
  335. 7.4.23 January 23, 2022
  336. Merged in changes from benoit-pierre that fixes an error thrown when vim
  337. is in read-only mode.
  338. Merged in changes from tartansandal that implements the use of an
  339. independent variable to track window splitting since s:splitMode != ''
  340. no longer implies that a split was triggered.
  341. 7.4.22 January 5,2022
  342. - Merged in change from nadean that fixed an issue that if you use either
  343. split mode, you could no longer use the regular non-split mode. This was
  344. because the split mode set s:splitMode and that variable was never reset
  345. to "" to allow you run without split mode.
  346. 7.4.21 December 8, 2018
  347. - Merged in changes from adelarsq that introduced ryanoasis/vim-devicons
  348. support. If the global g:loaded_webdevicons has been set, bufexplorer
  349. will now load the associated dev icons for each buffer.
  350. 7.4.20 January 18, 2017
  351. - Thanks to jpflouret for supplying code that can remove the warning
  352. messages if you using this plugin on an older version of Vim. The
  353. global variable is g:bufExplorerVersionWarn.
  354. 7.4.19 September 18, 2017
  355. - Merged all changes from github back into this version and tried to sync
  356. to the correct version number.
  357. 7.4.18 - Github.
  358. 7.4.17 - Github.
  359. 7.4.16 August 14, 2017
  360. - Thanks to Yubo Su for the patch that adds 'f, F, V, and v' commands.
  361. With this change, the original 'f' command was remapped to 'a'.
  362. The set of commands that can be used during exploring are:
  363. F - Open selected buffer in another window above the current.
  364. f - Open selected buffer in another window below the current.
  365. V - Open the selected buffer in another window on the left of the
  366. current.
  367. v - Open the selected buffer in another window on the right of the
  368. current.
  369. 7.4.15 May 01, 2017
  370. - Finally applied the patch submitted by justfalter. This patch is a
  371. backward-compatible fix for the "invalid tab range" bug.
  372. 7.4.14 April 10, 2017
  373. - As suggested by adelarsq way back on January 5th, 2016, a filetype has
  374. been added. There is now 'filetype=bufexplorer'.
  375. 7.4.13 March 08, 2017
  376. - Thanks to devakivamsi for pointing out that even though bufexplorer
  377. turns off line numbers by default within its own window, this did not
  378. work correctly when using WinManager. This has now been corrected.
  379. 7.4.12 September 30, 2016
  380. - Thanks again to Martin Vuille for several more fixes related to making
  381. bufexplorer more tab-friendly.
  382. 7.4.11 September, 20, 2016
  383. - Thanks to Martin Vuille for reworking the per-tab buffer listing code.
  384. Fix for g:bufExplorerShowTabBuffer is not working correctly and other
  385. "gliches" when the ShotTabBuffer option is enabled. For example old
  386. code would not correctly handle adding/deleting a tab that wasn't the
  387. highest-numbered tab.
  388. 7.4.10 August 26, 2016
  389. - Thanks to buddylindsey for fixing a misspelling in the docs.
  390. 7.4.9 April 01, 2016
  391. - Thanks to ivegotasthma for supplying a patch to fix a major issue with
  392. plugin performance when lots of buffers are open.
  393. - Thanks to ershov for the patch to fix grouping of files in ambiguous
  394. sort modes.
  395. - Thanks to PhilRunninger for changing documentation to use <Leader>, in
  396. place of '\'.
  397. 7.4.8 January 27, 2015
  398. - Thanks to Marius Gedminas for fixing up the documentation and correcting
  399. various typos.
  400. 7.4.7 January 20, 2015
  401. - Thanks goes out to Phil Runninger for added the ability to toggle the
  402. bufexplorer list on and off using the :ToggleBufExplorer command, the
  403. map <Leader>bt, and the function ToggleBufExplorer().
  404. 7.4.6 November 03, 2014
  405. - Not sure how, but the file format was converted to Dos instead of Unix.
  406. I converted the file back to Unix.
  407. 7.4.5 October 24, 2014
  408. - Dr Michael Henry suggested to change all noremap commands to nnoremap.
  409. Using noremap is unnecessarily broad and can cause problems, especially
  410. for select mode.
  411. 7.4.4 August 19, 2014
  412. - Revert change where bufexplorer windows was closed even if the target
  413. buffer has not been loaded yet.
  414. 7.4.3 August 13, 2014
  415. - Ivan Ukhov fixed issue with deleting the last window. This update also
  416. fixes as well as another. If you have say, NERDtree open on the left
  417. side and bufexplorer on the right, that bufexplorer would close NERDtree
  418. erroneously thinking that it is closing itself.
  419. - Radoslaw Burny fixed a few bugs that surfaced when bufexplorer is used
  420. within winmanager.
  421. 7.4.2 October 22, 2013
  422. - Added global option g:bufExplorerDisableDefaultKeyMapping. This option
  423. controls weather the default key mappings (\be, \bs, and \bv) are
  424. enabled or not. See documentation for more information.
  425. 7.4.1 October 11, 2013
  426. - First update related to Vim 7.4.
  427. - Changed license text.
  428. - Fixed issue with 'hidden'. If 'hidden' is set, make sure that
  429. g:bufExplorerFindActive is set to 0. Otherwise, when using \bs or \bv,
  430. and selecting a buffer, the original buffer will be switched to instead
  431. of being opened in the newly created windows.
  432. - Added new 'b' mapping when the bufExplorer window is opened. When 'b'
  433. is pressed, the user is prompted for the buffer number to switch to, and
  434. is is then switched to when <CR> is pressed. This allows for somewhat
  435. faster buffer switching instead of using the j and k keys or the mouse
  436. to select the buffer to switch to.
  437. - Removed 'set nolist' from the Initialize() function as well as the
  438. restore of the 'list' setting in the CleanUp() function. These were
  439. causing issues when multiple new files were opened from the command
  440. line. Furthermore, there was really no reason, that I can remember, to
  441. why the 'list' setting was saved, modified, and restored anyways.
  442. - Fixed issue with WinManager integration code not working correctly
  443. anymore.
  444. - Brought back the xnoremap setup for the 'd' and 'D' keys. These were
  445. removed for some reason after version 7.2.8.
  446. - Thanks to all the contributors and testers.
  447. 7.3.6 May 06, 2013
  448. - Removed the 'drop' window command that was causing issue with the
  449. argument-list being modified after the BufExplorer windows was
  450. displayed.
  451. 7.3.5 February 08, 2013
  452. - Michael Henry added the ability to view "No Name" buffers. This
  453. functionality was lost since version 7.3.0. He also did some removal of
  454. "dead" code and cleaned up the code to handle filenames with embedded
  455. '"'.
  456. 7.3.4 January 28, 2013
  457. - Thanks go out to John Szakmeister for finding and fixing a bug in the
  458. RebuildBufferList method. The keepjumps line that clears the list could
  459. potentially reference a backwards range.
  460. 7.3.3 January 14, 2013
  461. - Major cleanup and reorganization of the change log.
  462. - We welcome the return of g:bufExplorerSplitHorzSize and
  463. g:bufExplorerSplitVertSize. When setting these values, anything less
  464. than or equal to 0 causes the split windows size to be determined by
  465. Vim. If for example you want your new horizontal split window 10 rows
  466. high, set g:bufExplorerSplitHorzSize = 10 in your .vimrc. Similar would
  467. be done if wanting a vertical split except you would use the
  468. g:bufExplorerSplitVertSize variable instead.
  469. 7.3.2 December 24, 2012
  470. - Thanks go out to Michael Henry for pointing out that I completely
  471. missed yet another function, ReverseSortSelect(), during the
  472. refactoring. This function has now returned.
  473. 7.3.1 December 06, 2012
  474. - Thanks go out to Brett Rasmussen for pointing out that the feature
  475. added way back in version 7.2.3 by Yuriy Ershov to automatically
  476. reposition the cursor to the line containing the active buffer, was
  477. no longer in the plugin. That bit of code has been re-added and
  478. all is well.
  479. 7.3.0 October 09, 2012
  480. - It has been quite a while since I published a new version and this
  481. is the first version since Vim 7.3 was released. I have put some
  482. time into reworking and cleaning up the code as well as various bug
  483. fixes. Overall, I am hopeful that I not forgotten or lost a feature.
  484. - Thanks to Tim Johnson for testing out this new version.
  485. - I have hopefully allowed for better mapping of the main public
  486. methods as is explained in the |bufexplorer-customization| section
  487. of the documentation.
  488. - Add new 'B', 'o', and 'S' key mappings.
  489. 7.2.8 November 08, 2010
  490. - Thanks to Charles Campbell for integrating bufexplorer with GDBMGR.
  491. http://mysite.verizon.net/astronaut/vim/index.html#GDBMGR
  492. 7.2.7 April 26, 2010
  493. - My 1st attempt to fix the "cache" issue where buffers information
  494. has changed but the cache/display does not reflect those changes.
  495. More work still needs to be done.
  496. 7.2.6 February 12, 2010
  497. - Thanks to Michael Henry for pointing out that I totally forgot to
  498. update the inline help to reflect the previous change to the 'd'
  499. and 'D' keys. Opps!
  500. 7.2.5 February 10, 2010
  501. - Philip Morant suggested switching the command (bwipe) associated
  502. with the 'd' key with the command (bdelete) associated with the 'D'
  503. key. This made sense since the 'd' key is more likely to be used
  504. compared to the 'D' key.
  505. 7.2.4 January 14, 2010
  506. - I did not implement the patch provided by Godefroid Chapelle
  507. correctly. I missed one line which happened to be the most important
  508. one :)
  509. 7.2.3 December 15, 2009
  510. - Hopefully I have not left anyone or anything out :)
  511. - Thanks to David Fishburn for helping me out with a much needed
  512. code overhaul as well as some awesome performance enhancements.
  513. - David also reworked the handling of tabs.
  514. - Thanks to Vladimir Dobriakov for making the suggestions on
  515. enhancing the documentation to include a better explaination of
  516. what is contained in the main bufexplorer window.
  517. - Thanks to Yuriy Ershov for added code that when the bufexplorer
  518. window is opened, the cursor is now positioned at the line with the
  519. active buffer (useful in non-MRU sort modes).
  520. - Yuriy also added the abiltiy to cycle through the sort fields in
  521. reverse order.
  522. - Thanks to Michael Henry for supplying a patch that allows
  523. bufexplorer to be opened even when there is one buffer or less.
  524. - Thanks to Godefroid Chapelle for supplying a patch that fixed
  525. MRU sort order after loading a session.
  526. 7.2.2 November 19, 2008
  527. - Thanks to David L. Dight for spotting and fixing an issue when using
  528. ctrl^. bufexplorer would incorrectly handle the previous buffer so
  529. that when ctrl^ was pressed the incorrect file was opened.
  530. 7.2.1 September 03, 2008
  531. - Thanks to Dimitar for spotting and fixing a feature that was
  532. inadvertently left out of the previous version. The feature was when
  533. bufexplorer was used together with WinManager, you could use the tab
  534. key to open a buffer in a split window.
  535. 7.2.0 August 15, 2008
  536. - For all those missing the \bs and \bv commands, these have now
  537. returned. Thanks to Phil O'Connell for asking for the return of
  538. these missing features and helping test out this version.
  539. - Fixed problem with the bufExplorerFindActive code not working
  540. correctly.
  541. - Fixed an incompatibility between bufexplorer and netrw that caused
  542. buffers to be incorrectly removed from the MRU list.
  543. 7.1.7 December 21, 2007
  544. - TaCahiroy fixed several issues related to opening a buffer in a tab.
  545. 7.1.6 December 01, 2007
  546. - Removed ff=unix from modeline in bufexplorer.txt. Found by Bill
  547. McCarthy.
  548. 7.1.5 November 30, 2007
  549. - Could not open unnamed buffers. Fixed by TaCahiroy.
  550. 7.1.4 November 16, 2007
  551. - Sometimes when a file's path has 'white space' in it, extra buffers
  552. would be created containing each piece of the path. i.e:
  553. opening c:\document and settings\test.txt would create a buffer
  554. named "and" and a buffer named "Documents". This was reported and
  555. fixed by TaCa Yoss.
  556. 7.1.3 November 15, 2007
  557. - Added code to allow only one instance of the plugin to run at a time.
  558. Thanks Dennis Hostetler.
  559. 7.1.2 November 07, 2007
  560. - Dave Larson added handling of tabs.
  561. - Dave Larson removed \bs and \bv commands because these are easier for
  562. the used to create horizontal and vertical windows.
  563. - Fixed a jumplist issue spotted by JiangJun. I overlooked the
  564. 'jumplist' and with a couple calls to 'keepjumps', everything is fine
  565. again.
  566. - Went back to using just a plugin file, instead of both an autoload
  567. and plugin file. The splitting of the file caused issues with other
  568. plugins. So if you have a prior version of bufexplorer that has an
  569. autoload file, please remove autoload\bufexplorer and
  570. plugin\bufexplorer before installing this new version.
  571. - Fixed E493 error spotted by Thomas Arendsen Hein.
  572. - Minor cosmetic changes.
  573. - Minor help file changes.
  574. 7.1.1 August 02, 2007
  575. - A problem spotted by Thomas Arendsen Hein. When running Vim
  576. (7.1.94), error E493 was being thrown.
  577. * Added 'D' for 'delete' buffer as the 'd' command was a 'wipe' buffer.
  578. 7.1.0 August 01, 2007
  579. - Another 'major' update, some by Dave Larson, some by me.
  580. - Making use of 'autoload' now to make the plugin load quicker.
  581. - Removed '\bs' and '\bv'. These are now controlled by the user. The
  582. user can issue a ':sp' or ':vs' to create a horizontal or vertical
  583. split window and then issue a '\be'
  584. - Added handling of tabs.
  585. 7.0.17 July 24, 2007
  586. - Fixed issue with 'drop' command.
  587. - Various enhancements and improvements.
  588. 7.0.16 May 15, 2007
  589. - Fixed issue reported by Liu Jiaping on non Windows systems, which was
  590. ...
  591. Open file1, open file2, modify file1, open bufexplorer, you get the
  592. following error:
  593. --------8<--------
  594. Error detected while processing function
  595. <SNR>14_StartBufExplorer..<SNR>14_SplitOpen:
  596. line 4:
  597. E37: No write since last change (add ! to override)
  598. But the worse thing is, when I want to save the current buffer and
  599. type ':w', I get another error message:
  600. E382: Cannot write, 'buftype' option is set
  601. --------8<--------
  602. 7.0.15 April 27, 2007
  603. - Thanks to Mark Smithfield for suggesting bufexplorer needed to handle
  604. the ':args' command.
  605. 7.0.14 March 23, 2007
  606. - Thanks to Randall Hansen for removing the requirement of terminal
  607. versions to be recompiled with 'gui' support so the 'drop' command
  608. would work. The 'drop' command is really not needed in terminal
  609. versions.
  610. 7.0.13 February 23, 2007
  611. - Fixed integration with WinManager.
  612. - Thanks to Dave Eggum for another update.
  613. * Fix: The detailed help didn't display the mapping for toggling
  614. the split type, even though the split type is displayed.
  615. * Fixed incorrect description in the detailed help for toggling
  616. relative or full paths.
  617. * Deprecated s:ExtractBufferNbr(). Vim's str2nr() does the same
  618. thing.
  619. * Created a s:Set() function that sets a variable only if it hasn't
  620. already been defined. It's useful for initializing all those
  621. default settings.
  622. * Removed checks for repetitive command definitions. They were
  623. unnecessary.
  624. * Made the help highlighting a little more fancy.
  625. * Minor reverse compatibility issue: Changed ambiguous setting
  626. names to be more descriptive of what they do (also makes the code
  627. easier to follow):
  628. Changed bufExplorerSortDirection to bufExplorerReverseSort
  629. Changed bufExplorerSplitType to bufExplorerSplitVertical
  630. Changed bufExplorerOpenMode to bufExplorerUseCurrentWindow
  631. * When the BufExplorer window closes, all the file-local marks are
  632. now deleted. This may have the benefit of cleaning up some of the
  633. jumplist.
  634. * Changed the name of the parameter for StartBufExplorer from
  635. "split" to "open". The parameter is a string which specifies how
  636. the buffer will be open, not if it is split or not.
  637. * Deprecated DoAnyMoreBuffersExist() - it is a one line function
  638. only used in one spot.
  639. * Created four functions (SplitOpen(), RebuildBufferList(),
  640. UpdateHelpStatus() and ReSortListing()) all with one purpose - to
  641. reduce repeated code.
  642. * Changed the name of AddHeader() to CreateHelp() to be more
  643. descriptive of what it does. It now returns an array instead of
  644. updating the window directly. This has the benefit of making the
  645. code more efficient since the text the function returns is used a
  646. little differently in the two places the function is called.
  647. * Other minor simplifications.
  648. 7.0.12 November 30, 2006
  649. - MAJOR Update. This version will ONLY run with Vim version 7.0 or
  650. greater.
  651. - Dave Eggum has made some 'significant' updates to this latest
  652. version:
  653. * Added BufExplorerGetAltBuf() global function to be used in the
  654. user's rulerformat.
  655. * Added g:bufExplorerSplitRight option.
  656. * Added g:bufExplorerShowRelativePath option with mapping.
  657. * Added current line highlighting.
  658. * The split type can now be changed whether bufexplorer is opened
  659. in split mode or not.
  660. * Various major and minor bug fixes and speed improvements.
  661. * Sort by extension.
  662. - Other improvements/changes:
  663. * Changed the help key from '?' to <F1> to be more 'standard'.
  664. * Fixed splitting of vertical bufexplorer window.
  665. - Hopefully I have not forgot something :)
  666. 7.0.11 March 10, 2006
  667. - Fixed a couple of highlighting bugs, reported by David Eggum.
  668. - Dave Eggum also changed passive voice to active on a couple of
  669. warning messages.
  670. 7.0.10 March 02, 2006
  671. - Fixed bug report by Xiangjiang Ma. If the 'ssl' option is set,
  672. the slash character used when displaying the path was incorrect.
  673. 7.0.9 February 28, 2006
  674. - Martin Grenfell found and eliminated an annoying bug in the
  675. bufexplorer/winmanager integration. The bug was were an
  676. annoying message would be displayed when a window was split or
  677. a new file was opened in a new window. Thanks Martin!
  678. 7.0.8 January 18, 2006
  679. - Thanks to Mike Li for catching a bug in the WinManager integration.
  680. The bug was related to the incorrect displaying of the buffer
  681. explorer's window title.
  682. 7.0.7 December 19, 2005
  683. - Thanks to Jeremy Cowgar for adding a new enhancement. This
  684. enhancement allows the user to press 'S', that is capital S, which
  685. will open the buffer under the cursor in a newly created split
  686. window.
  687. 7.0.6 November 18, 2005
  688. - Thanks to Larry Zhang for finding a bug in the "split" buffer code.
  689. If you force set g:bufExplorerSplitType='v' in your vimrc, and if you
  690. tried to do a \bs to split the bufexplorer window, it would always
  691. split horizontal, not vertical.
  692. - Larry Zhang also found that I had a typeo in that the variable
  693. g:bufExplorerSplitVertSize was all lower case in the documentation
  694. which was incorrect.
  695. 7.0.5 October 18, 2005
  696. - Thanks to Mun Johl for pointing out a bug that if a buffer was
  697. modified, the '+' was not showing up correctly.
  698. 7.0.4 October 03, 2005
  699. - Fixed a problem discovered first by Xiangjiang Ma. Well since I've
  700. been using vim 7.0 and not 6.3, I started using a function (getftype)
  701. that is not in 6.3. So for backward compatibility, I conditionaly use
  702. this function now. Thus, the g:bufExplorerShowDirectories feature is
  703. only available when using vim 7.0 and above.
  704. 7.0.3 September 30, 2005
  705. - Thanks to Erwin Waterlander for finding a problem when the last
  706. buffer was deleted. This issue got me to rewrite the buffer display
  707. logic (which I've wanted to do for sometime now).
  708. - Also great thanks to Dave Eggum for coming up with idea for
  709. g:bufExplorerShowDirectories. Read the above information about this
  710. feature.
  711. 7.0.2 March 25, 2005
  712. - Thanks to Thomas Arendsen Hein for finding a problem when a user
  713. has the default help turned off and then brought up the explorer. An
  714. E493 would be displayed.
  715. 7.0.1 March 10, 2005
  716. - Thanks to Erwin Waterlander for finding a couple problems.
  717. The first problem allowed a modified buffer to be deleted. Opps! The
  718. second problem occurred when several files were opened, BufExplorer
  719. was started, the current buffer was deleted using the 'd' option, and
  720. then BufExplorer was exited. The deleted buffer was still visible
  721. while it is not in the buffers list. Opps again!
  722. 7.0.0 March 10, 205
  723. - Thanks to Shankar R. for suggesting to add the ability to set
  724. the fixed width (g:bufExplorerSplitVertSize) of a new window
  725. when opening bufexplorer vertically and fixed height
  726. (g:bufExplorerSplitHorzSize) of a new window when opening
  727. bufexplorer horizontally. By default, the windows are normally
  728. split to use half the existing width or height.
  729. 6.3.0 July 23, 2004
  730. - Added keepjumps so that the jumps list would not get cluttered with
  731. bufexplorer related stuff.
  732. 6.2.3 April 15, 2004
  733. - Thanks to Jay Logan for finding a bug in the vertical split position
  734. of the code. When selecting that the window was to be split
  735. vertically by doing a '\bv', from then on, all splits, i.e. '\bs',
  736. were split vertically, even though g:bufExplorerSplitType was not set
  737. to 'v'.
  738. 6.2.2 January 09, 2004
  739. - Thanks to Patrik Modesto for adding a small improvement. For some
  740. reason his bufexplorer window was always showing up folded. He added
  741. 'setlocal nofoldenable' and it was fixed.
  742. 6.2.1 October 09, 2003
  743. - Thanks goes out to Takashi Matsuo for added the 'fullPath' sorting
  744. logic and option.
  745. 6.2.0 June 13, 2003
  746. - Thanks goes out to Simon Johann-Ganter for spotting and fixing a
  747. problem in that the last search pattern is overridden by the search
  748. pattern for blank lines.
  749. 6.1.6 May 05, 2003
  750. - Thanks to Artem Chuprina for finding a pesky bug that has been around
  751. for sometime now. The <esc> key mapping was causing the buffer
  752. explored to close prematurely when vim was run in an xterm. The <esc>
  753. key mapping is now removed.
  754. 6.1.5 April 28, 2003
  755. - Thanks to Khorev Sergey. Added option to show default help or not.
  756. 6.1.4 March 18, 2003
  757. - Thanks goes out to Valery Kondakoff for suggesting the addition of
  758. setlocal nonumber and foldcolumn=0. This allows for line numbering
  759. and folding to be turned off temporarily while in the explorer.
  760. 6.1.3 March 11, 2003
  761. - Added folding.
  762. - Did some code cleanup.
  763. - Added the ability to force the newly split window to be temporarily
  764. vertical, which was suggested by Thomas Glanzmann.
  765. 6.1.2 November 05, 2002
  766. - Now pressing the <esc> key will quit, just like 'q'.
  767. - Added folds to hide winmanager configuration.
  768. - If anyone had the 'C' option in their cpoptions they would receive
  769. a E10 error on startup of BufExplorer. cpo is now saved, updated and
  770. restored. Thanks to Charles E Campbell, Jr.
  771. - Attempted to make sure there can only be one BufExplorer window open
  772. at a time.
  773. 6.1.1 March 28, 2002
  774. - Thanks to Brian D. Goodwin for adding toupper to FileNameCmp. This
  775. way buffers sorted by name will be in the correct order regardless of
  776. case.
  777. 6.0.16 March 14, 2002
  778. - Thanks to Andre Pang for the original patch/idea to get bufexplorer
  779. to work in insertmode/modeless mode (evim).
  780. - Added Initialize and Cleanup autocommands to handle commands that
  781. need to be performed when starting or leaving bufexplorer.
  782. 6.0.15 February 20, 2002
  783. - Srinath Avadhanulax added a patch for winmanager.vim.
  784. 6.0.14 February 19, 2002
  785. - Fix a few more bug that I thought I already had fixed.
  786. - Thanks to Eric Bloodworth for adding 'Open Mode/Edit in Place'.
  787. - Added vertical splitting.
  788. 6.0.13 February 05, 2002
  789. - Thanks to Charles E Campbell, Jr. for pointing out some embarrassing
  790. typos that I had in the documentation. I guess I need to run the
  791. spell checker more :o)
  792. 6.0.12 February 04, 2002
  793. - Thanks to Madoka Machitani, for the tip on adding the augroup command
  794. around the MRUList autocommands.
  795. 6.0.11 January 26, 2002
  796. - Fixed bug report by Xiangjiang Ma. '"=' was being added to the search
  797. history which messed up hlsearch.
  798. 6.0.10 January 14, 2002
  799. - Added the necessary hooks so that the Srinath Avadhanula's
  800. winmanager.vim script could more easily integrate with this script.
  801. - Tried to improve performance.
  802. 6.0.9 December 17, 2001
  803. - Added MRU (Most Recently Used) sort ordering.
  804. 6.0.8 December 03, 2001
  805. - Was not resetting the showcmd command correctly.
  806. - Added nifty help file.
  807. 6.0.7 November 19, 2001
  808. - Thanks to Brett Carlane for some great enhancements. Some are added,
  809. some are not, yet. Added highlighting of current and alternate
  810. filenames. Added splitting of path/filename toggle. Reworked
  811. ShowBuffers().
  812. - Changed my email address.
  813. 6.0.6 September 05, 2001
  814. - Copyright notice added. Needed this so that it could be distributed
  815. with Debian Linux.
  816. - Fixed problem with the SortListing() function failing when there was
  817. only one buffer to display.
  818. 6.0.5 August 10, 2001
  819. - Fixed problems reported by David Pascoe, in that you where unable to
  820. hit 'd' on a buffer that belonged to a files that no longer existed
  821. and that the 'yank' buffer was being overridden by the help text when
  822. the bufexplorer was opened.
  823. 6.0.4 July, 31, 2001
  824. - Thanks to Charles Campbell, Jr. for making this plugin more plugin
  825. *compliant*, adding default keymappings of <Leader>be and <Leader>bs
  826. as well as fixing the 'w:sortDirLabel not being defined' bug.
  827. 6.0.3 July 30, 2001
  828. - Added sorting capabilities. Sort taken from explorer.vim.
  829. 6.0.2 July 25, 2001
  830. - Can't remember.
  831. 6.0.1 Sometime before July 25, 2001
  832. - Initial release.
  833. ===============================================================================
  834. TODO *bufexplorer-todo*
  835. - Add ability to open a buffer in a horizontal or vertical split after the
  836. initial bufexplorer window is opened.
  837. ===============================================================================
  838. CREDITS *bufexplorer-credits*
  839. Author: Jeff Lanzarotta <my name at gmail dot com>
  840. Credit must go out to Bram Moolenaar (RIP) and all the Vim developers for
  841. making the world's best editor (IMHO). I also want to thank everyone who
  842. helped and gave me suggestions. I wouldn't want to leave anyone out so I
  843. won't list names.
  844. ===============================================================================
  845. COPYRIGHT *bufexplorer-copyright*
  846. Copyright (c) 2001-2025, Jeff Lanzarotta
  847. All rights reserved.
  848. Redistribution and use in source and binary forms, with or without
  849. modification, are permitted provided that the following conditions are met:
  850. * Redistributions of source code must retain the above copyright notice, this
  851. list of conditions and the following disclaimer.
  852. * Redistributions in binary form must reproduce the above copyright notice,
  853. this list of conditions and the following disclaimer in the documentation
  854. and/or other materials provided with the distribution.
  855. * Neither the name of the {organization} nor the names of its contributors may
  856. be used to endorse or promote products derived from this software without
  857. specific prior written permission.
  858. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  859. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  860. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  861. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  862. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  863. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  864. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  865. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  866. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  867. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  868. ===============================================================================
  869. vim:tw=78:noet:wrap:ts=4:ft=help:norl: