From d6cb65753f1aa15811600547070856081ce7f6b4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 1 Aug 2022 09:16:26 +0900 Subject: [PATCH] Explicitly address the side-effects of plug#end() in the example Close #1182 --- README.md | 4 ++++ doc/plug.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index e64f1da..b97287c 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,11 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug '~/my-prototype-plugin' " Initialize plugin system +" - Automatically executes `filetype plugin indent on` and `syntax enable`. call plug#end() +" You can revert the settings after the call like so: +" filetype indent off " Disable file-type-specific indentation +" syntax off " Disable syntax highlighting ``` Reload .vimrc and `:PlugInstall` to install plugins. diff --git a/doc/plug.txt b/doc/plug.txt index 16f2dc5..86b49e9 100644 --- a/doc/plug.txt +++ b/doc/plug.txt @@ -172,7 +172,11 @@ Example~ Plug '~/my-prototype-plugin' " Initialize plugin system + " - Automatically executes `filetype plugin indent on` and `syntax enable`. call plug#end() + " You can revert the settings after the call like so: + " filetype indent off " Disable file-type-specific indentation + " syntax off " Disable syntax highlighting < *:PlugInstall*