112

GitHub - ajmwagar/vim-deus: A better color scheme for the late night coder

 6 years ago
source link: https://github.com/ajmwagar/vim-deus
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.

vim-deus

Deus was created out of sheer rage caused by all of the bad Solarized/Gruvbox clones. (No offense) I was tired of them. I needed something original, something new. So if you are like me, and I believe many of you are...

I present you Deus:

Screenshots

vim-deus.jpg

node.jpg

merino.jpg

Installation

Manual:

  1. download & place deus.vim in your vimfiles/colors folder (usually ~/.vim/colors/)
  2. add this line to your .vimrc

colors deus

OR

Use a package manager like Pathogen, Vundle, or Vim-plug just to name a few:

Pathogen:

Run this in your terminal

cd ~/.vim/

mkdir bundle

cd bundle

git clone https://github.com/ajmwagar/vim-deus.git

Vim-Plug:

Add the following lines to your ~/.vimrc:

call plug#begin('~/.vim/bundle/')
Plug 'ajmwagar/vim-deus'
call  plug#end()

Don't forget to run:

:PlugInstall


Language Syntax Support:

  • JavaScript
  • CSS/HTML
  • C#
  • Markdown
  • Haskell
  • Scala
  • Elixir
  • MoonScript
  • Objective C
  • C Languages
  • CoffeeScript
  • Ruby
  • Rust
  • Python
  • Clojure
  • Any many more... (try vim-polyglot for syntax packs)

Bold = really nice looking (They all look good but these are my personal favorites.)


Plugin support

  • Airline :AirlineTheme deus
  • coc.nvim (popup-windows & error colors)
  • Ctrlp
  • NerdTREE
  • Syntastic (and most linters)
  • Deoplete
  • YCM (YouCompleteMe)
  • Tabbar
  • Vim-easy-motion
  • Sneak
  • Rainbow-Parentheses

Palette

Color Hex Use
#242a32 black
#d54e53 red
#98c379 green
#e5c07b yellow
#83a598 blue
#c678dd purple
#70c0ba teal
#eaeaea white
#666666 bright black
#ec3e45 bright red
#90c966 bright green
#edbf69 bright yellow
#73ba9f bright blue
#c858e9 bright purple
#2bcec2 bright teal
#ffffff bright white
#2c323b background
#eaeaea foreground

Troubleshooting

When using terminal-vim and vim-deus the colors can get messed up.

To fix this add the following snippet to your ~/.vimrc:

set t_Co=256
set termguicolors

let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

set background=dark    " Setting dark mode
colorscheme deus
let g:deus_termcolors=256

Instructions on how to enable TrueColor for Tmux can be found here.

Italics

If you use vim in a terminal that supports italics, set the environment variable TERM_ITALICS to TRUE (i.e. export TERM_ITALICS=true) to enable with vim-deus.

Terminal Support

Deus has been ported to the following terminal emulators.

Terminal Emulator Configuration
Alacritty alacritty.yml

Thank You

I took a lot of inspiration from two great colorschemes, Onedark and Gruvbox. I want to thank their creators for making such great color schemes. So thank you!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK