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:
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