bufexplorer.txt 53 KB

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