Skip to content

Commit db37a8a

Browse files
committed
Update comment in plug.vim
1 parent 7095372 commit db37a8a

File tree

2 files changed

+18
-48
lines changed

2 files changed

+18
-48
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
105105

106106
## Usage
107107

108-
Add a vim-plug section to your `~/.vimrc` (or `init.vim` for Neovim)
108+
Add a vim-plug section to your `~/.vimrc` (or `~/.config/nvim/init.vim` for Neovim)
109109

110110
1. Begin the section with `call plug#begin()`
111111
1. List the plugins with `Plug` commands
@@ -127,6 +127,7 @@ Reload the file or restart Vim, then you can,
127127
* `:PlugInstall` to install the plugins
128128
* `:PlugUpdate` to install or update the plugins
129129
* `:PlugDiff` to review the changes from the last update
130+
* `:PlugClean` to remove plugins no longer in the list
130131

131132
> [!NOTE]
132133
> That's basically all you need to know to get started. The rest of the

plug.vim

+16-47
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,36 @@
11
" vim-plug: Vim plugin manager
22
" ============================
33
"
4-
" Download plug.vim and put it in ~/.vim/autoload
4+
" 1. Download plug.vim and put it in 'autoload' directory
55
"
6+
" # Vim
67
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
78
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
89
"
9-
" Edit your .vimrc
10+
" # Neovim
11+
" sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
12+
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
1013
"
11-
" call plug#begin('~/.vim/plugged')
14+
" 2. Add a vim-plug section to your ~/.vimrc (or ~/.config/nvim/init.vim for Neovim)
1215
"
13-
" " Make sure you use single quotes
16+
" call plug#begin()
1417
"
15-
" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
16-
" Plug 'junegunn/vim-easy-align'
18+
" " List your plugins here
19+
" Plug 'tpope/vim-sensible'
1720
"
18-
" " Any valid git URL is allowed
19-
" Plug 'https://github.com/junegunn/vim-github-dashboard.git'
20-
"
21-
" " Multiple Plug commands can be written in a single line using | separators
22-
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
23-
"
24-
" " On-demand loading
25-
" Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
26-
" Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
27-
"
28-
" " Using a non-default branch
29-
" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
30-
"
31-
" " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
32-
" Plug 'fatih/vim-go', { 'tag': '*' }
33-
"
34-
" " Plugin options
35-
" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
36-
"
37-
" " Plugin outside ~/.vim/plugged with post-update hook
38-
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
39-
"
40-
" " Unmanaged plugin (manually installed and updated)
41-
" Plug '~/my-prototype-plugin'
42-
"
43-
" " Initialize plugin system
4421
" call plug#end()
4522
"
46-
" Then reload .vimrc and :PlugInstall to install plugins.
47-
"
48-
" Plug options:
23+
" 3. Reload the file or restart Vim, then you can,
4924
"
50-
"| Option | Description |
51-
"| ----------------------- | ------------------------------------------------ |
52-
"| `branch`/`tag`/`commit` | Branch/tag/commit of the repository to use |
53-
"| `rtp` | Subdirectory that contains Vim plugin |
54-
"| `dir` | Custom directory for the plugin |
55-
"| `as` | Use different name for the plugin |
56-
"| `do` | Post-update hook (string or funcref) |
57-
"| `on` | On-demand loading: Commands or `<Plug>`-mappings |
58-
"| `for` | On-demand loading: File types |
59-
"| `frozen` | Do not update unless explicitly specified |
25+
" :PlugInstall to install plugins
26+
" :PlugUpdate to update plugins
27+
" :PlugDiff to review the changes from the last update
28+
" :PlugClean to remove plugins no longer in the list
6029
"
61-
" More information: https://github.com/junegunn/vim-plug
30+
" For more information, see https://github.com/junegunn/vim-plug
6231
"
6332
"
64-
" Copyright (c) 2017 Junegunn Choi
33+
" Copyright (c) 2024 Junegunn Choi
6534
"
6635
" MIT License
6736
"

0 commit comments

Comments
 (0)