From dc7796a6e2e1a341becdd88039e8854499c997d6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 4 Feb 2020 18:23:53 +0900 Subject: [PATCH] Simplify the installation instruction --- README.md | 17 ++++------------- doc/fzf-vim.txt | 15 ++++----------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 25f5f99..1acb2d4 100644 --- a/README.md +++ b/README.md @@ -40,24 +40,15 @@ repository][fzf-main], which means you need to **set up both "fzf" and ### Using [vim-plug](https://github.com/junegunn/vim-plug) -If you already installed fzf using [Homebrew](https://brew.sh/), the following -should suffice: - ```vim -Plug '/usr/local/opt/fzf' +Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' ``` -But if you want to install fzf as well using vim-plug: - -```vim -Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } -Plug 'junegunn/fzf.vim' -``` - -- `dir` and `do` options are not mandatory -- Use `./install --bin` instead if you don't need fzf outside of Vim - Make sure to use Vim 7.4 or above +- If you have already installed fzf using [Homebrew](https://brew.sh/), and do + not wish to have another copy on your system, replace the first line with + `Plug '/usr/local/opt/fzf'` Commands -------- diff --git a/doc/fzf-vim.txt b/doc/fzf-vim.txt index 6073180..091567c 100644 --- a/doc/fzf-vim.txt +++ b/doc/fzf-vim.txt @@ -77,21 +77,14 @@ fzf/Vim integration, see {README-VIM}{4}. < Using vim-plug >____________________________________________________________~ *fzf-vim-using-vim-plug* - -If you already installed fzf using {Homebrew}{5}, the following should -suffice: > - Plug '/usr/local/opt/fzf' + Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' < -But if you want to install fzf as well using vim-plug: -> - Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } - Plug 'junegunn/fzf.vim' -< - - `dir` and `do` options are not mandatory - - Use `./install --bin` instead if you don't need fzf outside of Vim - Make sure to use Vim 7.4 or above + - If you have already installed fzf using {Homebrew}{5}, and do not wish to have + another copy on your system, replace the first line with + `Plug '/usr/local/opt/fzf'` {5} https://brew.sh/