Skip to content

Commit 7095372

Browse files
committed
Add colorscheme example (should be loaded after plug#end())
1 parent 3f1daea commit 7095372

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ call plug#begin()
160160
161161
" Make sure you use single quotes
162162
163-
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
164-
Plug 'junegunn/vim-easy-align'
163+
" Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
164+
Plug 'junegunn/seoul256.vim'
165165
166166
" Any valid git URL is allowed
167-
Plug 'https://github.com/junegunn/seoul256.vim.git'
167+
Plug 'https://github.com/junegunn/vim-easy-align.git'
168168
169169
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
170170
Plug 'fatih/vim-go', { 'tag': '*' }
@@ -199,6 +199,10 @@ call plug#end()
199199
" You can revert the settings after the call like so:
200200
" filetype indent off " Disable file-type-specific indentation
201201
" syntax off " Disable syntax highlighting
202+
203+
" Color schemes should be loaded after plug#end().
204+
" We prepend it with 'silent!' to ignore errors when it's not yet installed.
205+
silent! colorscheme seoul256
202206
```
203207

204208
### Lua example for Neovim
@@ -213,11 +217,11 @@ local Plug = vim.fn['plug#']
213217

214218
vim.call('plug#begin')
215219

216-
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
217-
Plug('junegunn/vim-easy-align')
220+
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
221+
Plug('junegunn/seoul256.vim')
218222

219223
-- Any valid git URL is allowed
220-
Plug('https://github.com/junegunn/seoul256.vim.git')
224+
Plug('https://github.com/junegunn/vim-easy-align.git')
221225

222226
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
223227
Plug('fatih/vim-go', { ['tag'] = '*' })
@@ -249,6 +253,10 @@ Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
249253
Plug('~/my-prototype-plugin')
250254

251255
vim.call('plug#end')
256+
257+
-- Color schemes should be loaded after plug#end().
258+
-- We prepend it with 'silent!' to ignore errors when it's not yet installed.
259+
vim.cmd('silent! colorscheme seoul256')
252260
```
253261

254262
## Commands

doc/plug.txt

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plug.txt plug Last change: May 15 2024
1+
plug.txt plug Last change: Jun 1 2024
22
PLUG - TABLE OF CONTENTS *plug* *plug-toc*
33
==============================================================================
44

@@ -121,11 +121,11 @@ The following examples demonstrate the additional features of vim-plug.
121121
122122
" Make sure you use single quotes
123123
124-
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
125-
Plug 'junegunn/vim-easy-align'
124+
" Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
125+
Plug 'junegunn/seoul256.vim'
126126
127127
" Any valid git URL is allowed
128-
Plug 'https://github.com/junegunn/seoul256.vim.git'
128+
Plug 'https://github.com/junegunn/vim-easy-align.git'
129129
130130
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
131131
Plug 'fatih/vim-go', { 'tag': '*' }
@@ -160,6 +160,10 @@ The following examples demonstrate the additional features of vim-plug.
160160
" You can revert the settings after the call like so:
161161
" filetype indent off " Disable file-type-specific indentation
162162
" syntax off " Disable syntax highlighting
163+
164+
" Color schemes should be loaded after plug#end().
165+
" We prepend it with 'silent!' to ignore errors when it's not yet installed.
166+
silent! colorscheme seoul256
163167
<
164168

165169
< Lua example for Neovim >____________________________________________________~
@@ -174,11 +178,11 @@ example above.
174178
175179
vim.call('plug#begin')
176180
177-
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
178-
Plug('junegunn/vim-easy-align')
181+
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
182+
Plug('junegunn/seoul256.vim')
179183
180184
-- Any valid git URL is allowed
181-
Plug('https://github.com/junegunn/seoul256.vim.git')
185+
Plug('https://github.com/junegunn/vim-easy-align.git')
182186
183187
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
184188
Plug('fatih/vim-go', { ['tag'] = '*' })
@@ -210,6 +214,10 @@ example above.
210214
Plug('~/my-prototype-plugin')
211215
212216
vim.call('plug#end')
217+
218+
-- Color schemes should be loaded after plug#end().
219+
-- We prepend it with 'silent!' to ignore errors when it's not yet installed.
220+
vim.cmd('silent! colorscheme seoul256')
213221
<
214222

215223
COMMANDS *plug-commands*

0 commit comments

Comments
 (0)