mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-02-27 07:02:16 +08:00
Add reload/restart step to usage section (#1255)
Reloading the .vimrc should be part of the usage section, not the example section.
This commit is contained in:
@@ -117,6 +117,7 @@ Add a vim-plug section to your `~/.vimrc` (or `stdpath('config') . '/init.vim'`
|
|||||||
1. `call plug#end()` to update `&runtimepath` and initialize plugin system
|
1. `call plug#end()` to update `&runtimepath` and initialize plugin system
|
||||||
- Automatically executes `filetype plugin indent on` and `syntax enable`.
|
- Automatically executes `filetype plugin indent on` and `syntax enable`.
|
||||||
You can revert the settings after the call. e.g. `filetype indent off`, `syntax off`, etc.
|
You can revert the settings after the call. e.g. `filetype indent off`, `syntax off`, etc.
|
||||||
|
1. Reload the file or restart Vim and run `:PlugInstall` to install plugins.
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
@@ -168,8 +169,6 @@ call plug#end()
|
|||||||
" syntax off " Disable syntax highlighting
|
" syntax off " Disable syntax highlighting
|
||||||
```
|
```
|
||||||
|
|
||||||
Reload .vimrc and `:PlugInstall` to install plugins.
|
|
||||||
|
|
||||||
#### Example (Lua configuration for Neovim)
|
#### Example (Lua configuration for Neovim)
|
||||||
|
|
||||||
In Neovim, you can write your configuration in a Lua script file named
|
In Neovim, you can write your configuration in a Lua script file named
|
||||||
|
|||||||
Reference in New Issue
Block a user