bufexplorer.txt 55 KB

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