mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
20 lines
1021 B
Markdown
20 lines
1021 B
Markdown
# 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`.
|