From d863d0783236e1a46291f7791347740891186154 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 19 Jun 2024 20:05:15 +0900 Subject: [PATCH] Add more explanation on plug#end() --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 9f6c382..cf9f9f8 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,17 @@ Reload the file or restart Vim, then you can, > document is for advanced users who want to know more about the features and > options. +> [!TIP] +> `plug#end()` automatically executes `filetype plugin indent on` and `syntax +> enable`. We believe this is a good default for most users, but if you don't +> want this behavior, you can revert the settings after the call. +> +> ```vim +> call plug#end() +> filetype indent off " Disable file-type-specific indentation +> syntax off " Disable syntax highlighting +> ``` + ### Getting Help - See [tutorial] page to learn more about the basics of vim-plug