diff --git a/README.md b/README.md index bca8815..4c1c05a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/use-active-window-with-bufexplorer.md b/vim/use-active-window-with-bufexplorer.md new file mode 100644 index 0000000..4bc6111 --- /dev/null +++ b/vim/use-active-window-with-bufexplorer.md @@ -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 `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`.