原文鏈接:https://vimjc.com/vim-color-schemes.html,感謝原作者。
Vi/Vim手工自行安裝配色方案的主要步驟包括:
(1) 確認當前用戶目錄下存在
~/.vim/colors
目錄,沒有則新建,安裝的Vim配色方案對應.vim文件需放在該目錄下(2) 下載或編輯某個配色方案的.vim文件,保存到
~/.vim/colors
目錄下(3) 修改Vim配置文件
~/.vimrc
,增加配置項colorscheme molokai
並保存 (假設下載了一個叫molokai的配色方案文件molokai.vim)
注意:配置項中的 molokai 爲配色方案文件的文件名,Vim通過該文件名加載對應.vim文件
下面介紹15個著名的Vim配色方案及其下載地址,大家可以根據圖片效果按需使用。推薦閱讀2017年排名前10的暗黑簡約型vim配色方案。
1. acme-colors
acme-colors配色方案支持256種顏色,對應.vim文件下載地址爲:
https://github.com/plan9-for-vimspace/acme-colors/blob/master/colors/acme.vim
2. base16
base16配色方案包含一系列配色,還提供了一些額外的插件供安裝,具體使用可參考github上的說明:
https://github.com/chriskempson/base16-vim
3. gotham
Gotham自稱是一個非常dark的配色方案,包含 gotham
和gotham256
以及一些其他插件配置,github地址爲:
https://github.com/whatyouhide/vim-gotham
4. gruvbox
gruvbox配色方案在github上的評價較高,據說對人眼非常pleasant,Vim教程網就是用的這個配色方案,下面是github地址及配色截圖
https://github.com/morhetz/gruvbox
5. janah
janah也是一個dark型的配色方案,github地址爲:
https://github.com/mhinz/vim-janah
6. jellybeans
jellybeans在github上也較流行,github地址:
https://github.com/nanotech/jellybeans.vim
7. lucius
lucius配色方案的github地址:https://github.com/jonathanfilip/vim-lucius
8. molokai
molokai配色方案非常出名,知乎上有個問題你認爲最好看的 Vim 配色方案是哪款,molokai的呼聲非常高
https://github.com/tomasr/molokai
9. oceanic-next
oceanic-next是一個neovim配色方案,依賴其他幾個插件和配色方案
https://github.com/mhartington/oceanic-next
10. paramount
paramount是一個比較簡單的Vim配色方案,只關注一些關鍵配置
https://github.com/owickstrom/vim-colors-paramount
11. flattened
flattened也是一個很簡介但不簡單的配色方案,官方說法是沒有廢話“without the bullshit”
https://github.com/romainl/flattened
12. railscasts
railscasts同時支持GUI和終端方式,github地址爲:
https://github.com/jpo/vim-railscasts-theme
13. seoul256
seoul256是一個低對比度(low-contrast)的配色方案,github地址:
https://github.com/junegunn/seoul256.vim
14. solarized
solarized配色方案在github上的star非常多,https://github.com/altercation/vim-colors-solarized
15. yowish
yowish配色方案同時支持GUI和256色終端,也是一個 dark
主題
https://github.com/kabbamine/yowish.vim
希望大家喜歡。