From d42d4caf6fd8682aeeefcd4538f8d9eabe370e7f Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 21 Jan 2021 18:29:52 +0000 Subject: [PATCH] Easier instruction how to use vim-plug Took me some time to figure it out. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index eef293e13..2565b7790 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,21 @@ repository][fzf-main], which means you need to **set up both "fzf" and ### Using [vim-plug](https://github.com/junegunn/vim-plug) +Add following to your `.vimrc` or `nvim.init`: + ```vim +call plug#begin('~/.vim/plugged') + +... other plugins + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' + +call plug#end() ``` +And then call `:PlugInstall` once. + `fzf#install()` makes sure that you have the latest binary, but it's optional, so you can omit it if you use a plugin manager that doesn't support hooks.