瀏覽代碼

Add more explanation on plug#end()

Junegunn Choi 1 年之前
父節點
當前提交
d863d07832
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      README.md

+ 11 - 0
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