mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Use Active Window With BufExplorer as a vim til
This commit is contained in:
@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
|
||||
warrant a full blog post. These are mostly things I learn by pairing with
|
||||
smart people at [Hashrocket](http://hashrocket.com/).
|
||||
|
||||
_383 TILs and counting..._
|
||||
_384 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -454,6 +454,7 @@ _383 TILs and counting..._
|
||||
- [Tabs To Spaces](vim/tabs-to-spaces.md)
|
||||
- [The Vim Info File](vim/the-vim-info-file.md)
|
||||
- [Unloading A Buffer](vim/unloading-a-buffer.md)
|
||||
- [Use Active Window With BufExplorer](vim/use-active-window-with-bufexplorer.md)
|
||||
- [Verbose Commits With Fugitive](vim/verbose-commits-with-fugitive.md)
|
||||
- [View Commit History of a File](vim/view-commit-history-of-a-file.md)
|
||||
- [Viewing Man Pages with man.vim](vim/viewing-man-pages-with-man-vim.md)
|
||||
|
||||
19
vim/use-active-window-with-bufexplorer.md
Normal file
19
vim/use-active-window-with-bufexplorer.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Use Active Window With BufExplorer
|
||||
|
||||
I often use [BufExplorer](https://github.com/jlanzarotta/bufexplorer) within
|
||||
long-running Vim sessions as a way of quickly jumping between the various
|
||||
buffers in my buffer list. After working with one buffer, I use `<leader>bs`
|
||||
to open BufExplorer, move my cursor to the next buffer of interest, and hit
|
||||
enter to open it in place of the current buffer. This is the default
|
||||
behavior at least.
|
||||
|
||||
There is a setting on BufExplorer (`g:bufExplorerFindActive`) that is
|
||||
toggled on by default. Because of this setting, BufExplorer finds the window
|
||||
that was active before accessing the BufExplorer window when opening a
|
||||
buffer. If this setting is toggled off, BufExplorer doesn't bother finding
|
||||
the active window, it just opens the buffer up in place of itself in
|
||||
whatever split window was created for itself.
|
||||
|
||||
This setting can be toggled within the BufExplorer window by hitting `f`. It
|
||||
will toggle between `Locate Buffer` and `Don't Locate Buffer`. I prefer the
|
||||
default of `Locate Buffer`.
|
||||
Reference in New Issue
Block a user