76

GitHub - Badacadabra/vim-archery: Vim colorscheme inspired by Arch Linux colors

 6 years ago
source link: https://github.com/Badacadabra/vim-archery
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Logo

About

Archery is a dark colorscheme for Vim, inspired by Arch Linux color palette. This is where beautiful shades of blue meet mysterious shades of gray!

Screenshot

Installation

It is recommended to install Archery with a Vim plugin manager:

Then enable the colorscheme in your vimrc with the following command: colorscheme archery

If you only use GVim, you're done! If you use terminal Vim, read on...

  1. Archery supports 256 colors terminals, so you do not need plugins like CSApprox or GUIColorscheme to use it.
  2. Open your vimrc with Vim in your terminal and try :set termguicolors. If colors are rendered properly, you can add this command in your vimrc to use GUI colors directly (these are defined using the hexadecimal notation).
  3. If "termguicolors" does not work, add set t_Co=256 in your vimrc before setting the colorscheme and configure your terminal emulator to use the Archery color palette given below.

Color palette

colors cterm gui
0 #25272C
1 #BA2A2A
2 #008542
3 #F07D30
4 #0088CC
5 #8D4888
6 #006596
7 #53586F
8 #354151
9 #C95F5F
10 #73BA25
11 #EAC06E
12 #81A3CF
13 #B589C2
14 #25B8A5
15 #F6F9FC

In GVim, color8 will be #282D34 instead of #354151. Why? Because some CLI tools use the dark gray color to display textual information. This makes some text unreadable, due to the dark background of Archery. So in terminal emulators, color8 must be lighter...

Nice status & tab lines

If you want to display a status line and a tab line in Vim, make sure these options are set in your vimrc:

set showtabline=2
set laststatus=2

Airline

Put the following code in your vimrc to use Archery for Airline:

let g:airline_theme = 'archery'

For further configuration, please read the documentation of Airline.

Lightline

Put the following code in your vimrc to use Archery for Lightline:

let g:lightline = {
    \ 'colorscheme': 'archery',
    \ }

For further configuration, please read the documentation of Lightline. You may also consider lightline-buffer to display a useful tab line.

Plugins support

Archery plays nicely with the following plugins:

Syntax optimizations

  • Markdown
  • Readline

Programming

  • C/C++
  • JavaScript
  • Python

Archery is the default colorscheme of Vimpressionist.

If you would like to use Vim everywhere on your computing environment, you should definitely check it out!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK