bufexplorer.txt 55 KB

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