bufexplorer.txt 61 KB

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