From 62ddd3ab0f950bada4ea11b3d5f3ab18194d8634 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Tue, 11 Jan 2022 23:27:38 +0800 Subject: [PATCH 1/2] ch03: initialize vim-plug before loading plugins Without this line, Vim gets errors. --- ch03_searching_files.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ch03_searching_files.md b/ch03_searching_files.md index dbbd4b2..71a3c20 100644 --- a/ch03_searching_files.md +++ b/ch03_searching_files.md @@ -232,6 +232,7 @@ After installing fzf and ripgrep, let's set up the fzf plugin. I am using [vim-p Add these inside your `.vimrc` plugins. You need to use [fzf.vim](https://github.com/junegunn/fzf.vim) plugin (created by the same fzf author). ``` +call plug#begin() Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } ``` From 86c241f493bc6869bee97b245c1690ea6e056061 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Tue, 11 Jan 2022 23:41:13 +0800 Subject: [PATCH 2/2] add end statement --- ch03_searching_files.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ch03_searching_files.md b/ch03_searching_files.md index 71a3c20..d6f2d80 100644 --- a/ch03_searching_files.md +++ b/ch03_searching_files.md @@ -235,6 +235,7 @@ Add these inside your `.vimrc` plugins. You need to use [fzf.vim](https://github call plug#begin() Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +call plug#end() ``` After adding these lines, you will need to open `vim` and run `:PlugInstall`. It will install all plugins that are defined in your `vimrc` file and are not installed. In our case, it will install `fzf.vim` and `fzf`.