Skip to content

Commit

Permalink
Explicitly address the side-effects of plug#end() in the example
Browse files Browse the repository at this point in the history
Close #1182
  • Loading branch information
junegunn committed Aug 1, 2022
1 parent 87a160a commit d6cb657
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions doc/plug.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down

0 comments on commit d6cb657

Please sign in to comment.