Nvim和Vim主题

世界上最好的编辑器之一是 Vim 它的升级版本为 Neovim ,在终端中打开的命令分别是 vim 和 nvim , 一款漂亮的主题可以使工作变的更加愉悦,但是众的主题又不好选择。还好我们有一个网站 https://vimcolorschemes.com ,可以直观的看到这些主题 ,但是该如何选择呢? 当然可以直接安装选中的主题,但是本文推荐一劳永逸的主题:vim 安装主题 base16-vim , neovim 安装主题 nvim-base16 , 这两个主题也可以认为是多个主题的集合,可以自由选择主题。

nvim安装nvim-base16

在 neovim 中使用当前流行的 packer 插件管理器,配置如下

~/.config/nvim/lua/plg/plugins.lua
1
2
3
4
5
6
7
8
9
use {
'git@github.com:folke/tokyonight.nvim',
'git@github.com:tomasr/molokai',
'git@github.com:catppuccin/nvim',
'git@github.com:jaredgorski/SpaceCamp',
'git@github.com:morhetz/gruvbox',
'git@github.com:nelstrom/vim-mac-classic-theme',
'git@github.com:RRethy/nvim-base16',
}
~/.config/nvim/lua/theme/nvim-base16.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#! /usr/bin/env lua
--
-- nvim-base16.lua
-- https://github.com/RRethy/nvim-base16
-- Copyright (C) 2023 feng <feng@arch>
--
-- Distributed under terms of the MIT license.
--

vim.cmd [[ set background=dark ]]
-- All builtin colorschemes can be accessed with |:colorscheme|.
vim.cmd [[ colorscheme base16-tokyo-night-storm ]]

-- Alternatively, you can provide a table specifying your colors to the setup function.
-- require('base16-colorscheme').setup({
-- base00 = '#16161D', base01 = '#2c313c', base02 = '#3e4451', base03 = '#6c7891',
-- base04 = '#565c64', base05 = '#abb2bf', base06 = '#9a9bb3', base07 = '#c5c8e6',
-- base08 = '#e06c75', base09 = '#d19a66', base0A = '#e5c07b', base0B = '#98c379',
-- base0C = '#56b6c2', base0D = '#0184bc', base0E = '#c678dd', base0F = '#a06949',
-- })
-- Builtin Colorschemes
-- base16-3024
-- base16-apathy
-- base16-apprentice
-- base16-ashes
-- base16-atelier-cave-light
-- base16-atelier-cave
-- base16-atelier-dune-light
-- base16-atelier-dune
-- base16-atelier-estuary-light
-- base16-atelier-estuary
-- base16-atelier-forest-light
-- base16-atelier-forest
-- base16-atelier-heath-light
-- base16-atelier-heath
-- base16-atelier-lakeside-light
-- base16-atelier-lakeside
-- base16-atelier-plateau-light
-- base16-atelier-plateau
-- base16-atelier-savanna-light
-- base16-atelier-savanna
-- base16-atelier-seaside-light
-- base16-atelier-seaside
-- base16-atelier-sulphurpool-light
-- base16-atelier-sulphurpool
-- base16-atlas
-- base16-ayu-dark
-- base16-ayu-light
-- base16-ayu-mirage
-- base16-bespin
-- base16-black-metal-bathory
-- base16-black-metal-burzum
-- base16-black-metal-dark-funeral
-- base16-black-metal-gorgoroth
-- base16-black-metal-immortal
-- base16-black-metal-khold
-- base16-black-metal-marduk
-- base16-black-metal-mayhem
-- base16-black-metal-nile
-- base16-black-metal-venom
-- base16-black-metal
-- base16-blueforest
-- base16-blueish
-- base16-brewer
-- base16-bright
-- base16-brogrammer
-- base16-brushtrees-dark
-- base16-brushtrees
-- base16-catppuccin
-- base16-chalk
-- base16-circus
-- base16-classic-dark
-- base16-classic-light
-- base16-codeschool
-- base16-colors
-- base16-cupcake
-- base16-cupertino
-- base16-danqing
-- base16-da-one-black
-- base16-da-one-gray
-- base16-da-one-ocean
-- base16-da-one-paper
-- base16-da-one-sea
-- base16-da-one-white
-- base16-darcula
-- base16-darkmoss
-- base16-darktooth
-- base16-darkviolet
-- base16-decaf
-- base16-default-dark
-- base16-default-light
-- base16-dirtysea
-- base16-dracula
-- base16-edge-dark
-- base16-edge-light
-- base16-eighties
-- base16-embers
-- base16-emil
-- base16-equilibrium-dark
-- base16-equilibrium-gray-dark
-- base16-equilibrium-gray-light
-- base16-equilibrium-light
-- base16-espresso
-- base16-eva-dim
-- base16-eva
-- base16-everforest
-- base16-flat
-- base16-framer
-- base16-fruit-soda
-- base16-gigavolt
-- base16-github
-- base16-google-dark
-- base16-google-light
-- base16-gotham
-- base16-grayscale-dark
-- base16-grayscale-light
-- base16-greenscreen
-- base16-gruber
-- base16-gruvbox-dark-hard
-- base16-gruvbox-dark-medium
-- base16-gruvbox-dark-pale
-- base16-gruvbox-dark-soft
-- base16-gruvbox-light-hard
-- base16-gruvbox-light-medium
-- base16-gruvbox-light-soft
-- base16-gruvbox-material-dark-hard
-- base16-gruvbox-material-dark-medium
-- base16-gruvbox-material-dark-soft
-- base16-gruvbox-material-light-hard
-- base16-gruvbox-material-light-medium
-- base16-gruvbox-material-light-soft
-- base16-hardcore
-- base16-harmonic-dark
-- base16-harmonic-light
-- base16-heetch-light
-- base16-heetch
-- base16-helios
-- base16-hopscotch
-- base16-horizon-dark
-- base16-horizon-light
-- base16-horizon-terminal-dark
-- base16-horizon-terminal-light
-- base16-humanoid-dark
-- base16-humanoid-light
-- base16-ia-dark
-- base16-ia-light
-- base16-icy
-- base16-irblack
-- base16-isotope
-- base16-kanagawa
-- base16-katy
-- base16-kimber
-- base16-lime
-- base16-macintosh
-- base16-marrakesh
-- base16-material-darker
-- base16-material-lighter
-- base16-material-palenight
-- base16-material-vivid
-- base16-material
-- base16-materia
-- base16-mellow-purple
-- base16-mexico-light
-- base16-mocha
-- base16-monokai
-- base16-nebula
-- base16-nord
-- base16-nova
-- base16-oceanicnext
-- base16-ocean
-- base16-onedark
-- base16-one-light
-- base16-outrun-dark
-- base16-pandora
-- base16-papercolor-dark
-- base16-papercolor-light
-- base16-paraiso
-- base16-pasque
-- base16-phd
-- base16-pico
-- base16-pinky
-- base16-pop
-- base16-porple
-- base16-primer-dark-dimmed
-- base16-primer-dark
-- base16-primer-light
-- base16-purpledream
-- base16-qualia
-- base16-railscasts
-- base16-rebecca
-- base16-rose-pine-dawn
-- base16-rose-pine-moon
-- base16-rose-pine
-- base16-sagelight
-- base16-sakura
-- base16-sandcastle
-- base16-seti
-- base16-shadesmear-dark
-- base16-shadesmear-light
-- base16-shades-of-purple
-- base16-shapeshifter
-- base16-silk-dark
-- base16-silk-light
-- base16-snazzy
-- base16-solarflare-light
-- base16-solarflare
-- base16-solarized-dark
-- base16-solarized-light
-- base16-spaceduck
-- base16-spacemacs
-- base16-stella
-- base16-still-alive
-- base16-summercamp
-- base16-summerfruit-dark
-- base16-summerfruit-light
-- base16-synth-midnight-dark
-- base16-synth-midnight-light
-- base16-tango
-- base16-tender
-- base16-tokyo-city-dark
-- base16-tokyo-city-light
-- base16-tokyo-city-terminal-dark
-- base16-tokyo-city-terminal-light
-- base16-tokyodark-terminal
-- base16-tokyodark
-- base16-tokyo-night-dark
-- base16-tokyo-night-light
-- base16-tokyo-night-storm
-- base16-tokyo-night-terminal-dark
-- base16-tokyo-night-terminal-light
-- base16-tokyo-night-terminal-storm
-- base16-tomorrow-night-eighties
-- base16-tomorrow-night
-- base16-tomorrow
-- base16-tube
-- base16-twilight
-- base16-unikitty-dark
-- base16-unikitty-light
-- base16-unikitty-reversible
-- base16-uwunicorn
-- base16-vice
-- base16-vulcan
-- base16-windows-10-light
-- base16-windows-10
-- base16-windows-95-light
-- base16-windows-95
-- base16-windows-highcontrast-light
-- base16-windows-highcontrast
-- base16-windows-nt-light
-- base16-windows-nt
-- base16-woodland
-- base16-xcode-dusk
-- base16-zenburn
~/.config/nvim/init.vim
1
lua require('theme/nvim-base16')

vim安装base16-vim

我在 vim 编辑器中使用 vundle 插件管理器,配置如下

Vundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'git@github.com:VundleVim/Vundle.vim'
Plugin 'git@github.com:vim-latex/vim-latex'
Plugin 'git@github.com:aperezdc/vim-template'
Plugin 'git@github.com:SirVer/ultisnips'
Plugin 'git@github.com:honza/vim-snippets'
Plugin 'git@github.com:bluz71/vim-nightfly-colors'
Plugin 'git@github.com:tinted-theming/base16-vim'
call vundle#end() " required
set background=dark
" colorscheme nightfly
" colorscheme base16-gruvbox-dark-hard
" colorscheme base16-humanoid-dark
" colorscheme base16-primer-dark-dimmed
" colorscheme base16-primer-dark
" colorscheme base16-chalk
" colorscheme base16-nord
" colorscheme base16-pico
" colorscheme base16-tomorrow-night
" colorscheme base16-atelier-forest
" colorscheme base16-macintosh
" colorscheme base16-paraiso
" colorscheme base16-brogrammer
" colorscheme base16-onedark
" colorscheme base16-windows-95
" colorscheme base16-nebula
" colorscheme base16-snazzy
" colorscheme base16-stella
" colorscheme base16-tender
" colorscheme base16-vice
" colorscheme base16-atelier-plateau
" colorscheme base16-mellow-purple
" colorscheme base16-black-metal-nile
" colorscheme base16-blueforest
" colorscheme base16-materia
colorscheme base16-tokyo-night-terminal-dark
" colorscheme base16-unikitty-dark
" colorscheme base16-atelier-seaside
" colorscheme base16-black-metal-mayhem
" colorscheme base16-da-one-gray
" colorscheme base16-spacemacs
" colorscheme base16-brushtrees-dark
" colorscheme base16-da-one-ocean
" colorscheme base16-darkmoss
" colorscheme base16-framer
" colorscheme base16-tokyo-night-terminal-storm
" colorscheme base16-black-metal-bathory
" colorscheme base16-codeschool
" colorscheme base16-eighties
" colorscheme base16-material-palenight
" colorscheme base16-xcode-dusk
" colorscheme base16-gigavolt
" colorscheme base16-gruber
" colorscheme base16-hardcore
" colorscheme base16-mocha
" colorscheme base16-shadesmear-dark
" colorscheme base16-da-one-black
" colorscheme base16-irblack
colorscheme base16-tokyo-night-storm
" colorscheme base16-apprentice
" colorscheme base16-darcula
" colorscheme base16-eva-dim
" colorscheme base16-gruvbox-material-dark-soft
" colorscheme base16-woodland
" colorscheme base16-catppuccin
" colorscheme base16-google-dark
" colorscheme base16-isotope
" colorscheme base16-catppuccin-frappe
" colorscheme base16-flat
" colorscheme base16-gruvbox-dark-medium
" colorscheme base16-black-metal-immortal
" colorscheme base16-espresso
" colorscheme base16-hopscotch
" colorscheme base16-black-metal-burzum
" colorscheme base16-ia-dark
" colorscheme base16-summercamp
" colorscheme base16-helios
" colorscheme base16-shades-of-purple
" colorscheme base16-windows-highcontrast
" colorscheme base16-ashes
" colorscheme base16-ayu-dark
" colorscheme base16-catppuccin-macchiato
" colorscheme base16-catppuccin-mocha
" colorscheme base16-gotham
" colorscheme base16-phd
" colorscheme base16-seti
" colorscheme base16-gruvbox-material-dark-hard
" colorscheme base16-heetch
" colorscheme base16-mountain
" colorscheme base16-rebecca
" colorscheme base16-darkviolet
" colorscheme base16-equilibrium-gray-dark
" colorscheme base16-evenok-dark
" colorscheme base16-gruvbox-dark-pale
" colorscheme base16-tango
" colorscheme base16-atelier-savanna
" colorscheme base16-harmonic-dark
" colorscheme base16-katy
" colorscheme base16-material
" colorscheme base16-zenbones
" colorscheme base16-atlas
" colorscheme base16-rose-pine-moon
" colorscheme base16-tomorrow-night-eighties
" colorscheme base16-eva
" colorscheme base16-ocean
" colorscheme base16-black-metal-gorgoroth
" colorscheme base16-windows-nt
" colorscheme base16-black-metal
" colorscheme base16-porple
" colorscheme base16-tokyo-city-dark
" colorscheme base16-vulcan
" colorscheme base16-atelier-cave
" colorscheme base16-black-metal-dark-funeral
" colorscheme base16-black-metal-venom
" colorscheme base16-lime
" colorscheme base16-atelier-dune
" colorscheme base16-black-metal-marduk
" colorscheme base16-horizon-dark
" colorscheme base16-pinky
" colorscheme base16-sandcastle
" colorscheme base16-summerfruit-dark
" colorscheme base16-da-one-sea
" colorscheme base16-default-dark
" colorscheme base16-apathy
" colorscheme base16-atelier-sulphurpool
" colorscheme base16-darktooth
" colorscheme base16-harmonic16-dark
" colorscheme base16-standardized-dark
" colorscheme base16-unikitty-reversible
" colorscheme base16-kimber
" colorscheme base16-circus
" colorscheme base16-oceanicnext
" colorscheme base16-monokai
" colorscheme base16-greenscreen
" colorscheme base16-uwunicorn
" colorscheme base16-equilibrium-dark
" colorscheme base16-selenized-dark
" colorscheme base16-tokyodark
" colorscheme base16-classic-dark
" colorscheme base16-railscasts
" colorscheme base16-embers
" colorscheme base16-gruvbox-dark-soft
" colorscheme base16-twilight
" colorscheme base16-grayscale-dark
" colorscheme base16-material-darker
" colorscheme base16-outrun-dark
" colorscheme base16-black-metal-khold
" colorscheme base16-silk-dark
" colorscheme base16-pasque
" colorscheme base16-atelier-heath
" colorscheme base16-blueish
" colorscheme base16-nova
" colorscheme base16-brewer
" colorscheme base16-everforest
" colorscheme base16-purpledream
" colorscheme base16-bespin
" colorscheme base16-pandora
" colorscheme base16-papercolor-dark
" colorscheme base16-colors
" colorscheme base16-qualia
" colorscheme base16-3024
" colorscheme base16-ayu-mirage
" colorscheme base16-edge-dark
" colorscheme base16-spaceduck
" colorscheme base16-horizon-terminal-dark
" colorscheme base16-pop
" colorscheme base16-rose-pine
" colorscheme base16-bright
" colorscheme base16-selenized-black
" colorscheme base16-synth-midnight-dark
" colorscheme base16-marrakesh
" colorscheme base16-windows-10
" colorscheme base16-zenburn
" colorscheme base16-gruvbox-material-dark-medium
" colorscheme base16-atelier-lakeside
" colorscheme base16-icy
" colorscheme base16-kanagawa
" colorscheme base16-tokyodark-terminal
" colorscheme base16-atelier-estuary
" colorscheme base16-solarized-dark
" colorscheme base16-tokyo-night-dark
" colorscheme base16-tube
" colorscheme base16-decaf
" colorscheme base16-tokyo-city-terminal-dark
" colorscheme base16-danqing
" colorscheme base16-dracula
" colorscheme base16-solarflare
" colorscheme base16-material-vivid