From 82b0392eb84288cfd03f9805e6400d7d229261b1 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 13 Mar 2019 11:47:59 -0500 Subject: [PATCH] Add Open FZF Result In A Split as a vim til --- README.md | 3 ++- vim/open-fzf-result-in-a-split.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vim/open-fzf-result-in-a-split.md diff --git a/README.md b/README.md index 22e6676..5b0c8ee 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_780 TILs and counting..._ +_781 TILs and counting..._ --- @@ -826,6 +826,7 @@ _780 TILs and counting..._ - [Normal Node Binding To Just Quit](vim/normal-mode-binding-to-just-quit.md) - [Open A Tag In A Split Window](vim/open-a-tag-in-a-split-window.md) - [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md) +- [Open FZF Result In A Split](vim/open-fzf-result-in-a-split.md) - [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md) - [Open The Directory Of The Current File](vim/open-the-directory-of-the-current-file.md) - [Open The Gemfile](vim/open-the-gemfile.md) diff --git a/vim/open-fzf-result-in-a-split.md b/vim/open-fzf-result-in-a-split.md new file mode 100644 index 0000000..c352933 --- /dev/null +++ b/vim/open-fzf-result-in-a-split.md @@ -0,0 +1,12 @@ +# Open FZF Result In A Split + +The [`fzf.vim` plugin](https://github.com/junegunn/fzf.vim) allows you to do +speedy fuzzy searches for filenames and line-by-line content. + +Once you've narrowed down the results and found what you're interested, you +can hit `` and a new buffer will open over what was already in the +window. You can also open that file as a split. + +Hitting `Ctrl-x` will open the file under the cursor as a horizontal split. + +Hitting `Ctrl-v` will alternatively open that file as a vertical split.