Giter Site home page Giter Site logo

vim-eldar's Introduction

Eldar logo

Eldar is a dark color theme for Vim using bright, high-contrast colors. It is based on elflord, one of the default Vim color schemes.

Example of Vim Eldar with Python Example of Vim Eldar with C++

Eldar looks great in both the GUI and terminal because it uses fewer than 16 colors. Eldar uses the Tango color palette in the GUI by default, but these colors can be overridden by setting g:eldar_* variables (see below). Eldar uses both colors and font weight to differentiate various elements. It is not a subtle scheme; it uses white on black text with high contrast colors.

Installation

You can install Eldar by downloading the eldar.vim file and placing it in ~/.vim/colors/, or by using whatever plugin manager you prefer. For example, with vim-plug:

Plug 'agude/vim-eldar'

You can activate the color scheme with:

:colorscheme eldar

Or put it in your .vimrc so it activates every time you open Vim:

"------------------------
" Syntax: highlighting
"------------------------
if has('syntax')
    syntax enable             " Turn on syntax highlighting
    silent! colorscheme eldar " Custom color scheme
endif

Change Colors

To change the GUI colors, simply define the appropriate g:eldar_* variable in your .vimrc before calling colorscheme:

"------------------------
" Syntax: highlighting
"------------------------
if has('syntax')
    " Override Eldar GUI colors
    let g:eldar_red     = "#ff0000"
    let g:eldar_yellow  = "#ffff00"
    let g:eldar_green   = "#00ff00"
    let g:eldar_cyan    = "#00ffff"
    let g:eldar_blue    = "#0000ff"
    let g:eldar_magenta = "#ff00ff"

    syntax enable             " Turn on syntax highlighting
    silent! colorscheme eldar " Custom color scheme
endif

The GUI text and background colors default to "White" and "Black" respectively. To change these, set the following variables:

let g:eldar_text        = "#D3D3D3"
let g:eldar_background  = "#2B2B2B"

By default terminal vim will use the background color and text color defined by your terminal profile. To override these colors, set:

let g:eldar_term_text        = "White"
let g:eldar_term_background  = "Black"

All these variables must be set before calling colorscheme eldar.

Screenshots

Python

Example of Vim Eldar with Python

C++

Example of Vim Eldar with C++

Markdown

Example of Vim Eldar with Markdown

Diff

Example of Vim Eldar performing a diff

vim-eldar's People

Contributors

agude avatar shushcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-eldar's Issues

Error on start when using Quick-Scope

Error detected while processing function <SNR>60_set_highlight_colors[37]..<SNR>60_add_to_highlight_group:
line    1:
E417: missing argument: ctermbg=
Error detected while processing function <SNR>60_set_highlight_colors[38]..<SNR>60_add_to_highlight_group:
line    1:
E417: missing argument: ctermbg=
Press ENTER or type command to continue

VIM - Vi IMproved 8.0
Ubuntu 14.04

Error messages when use the colorscheme on neovim

Both of terminal and GUI will show this error message, seems it does not compatible with coc.nvim

[coc.nvim] Error: call_atomic request error on "nvim_command": Vim(highlight):E421:Color name or number not recognized: ctermfg=NaN guifg=#00000E  

Error: Pattern not found: eldar_red = "#ff0000"

I'm getting the following errors when I want to change the colors.

Pattern not found: eldar_red     = "#ff0000"
Pattern not found: eldar_yellow  = "#ffff00"
Pattern not found: eldar_green   = "#00ff00"
Pattern not found: eldar_cyan    = "#00ffff"
Pattern not found: eldar_blue    = "#0000ff"
Pattern not found: eldar_magenta = "#ff00ff"

I just pasted the config from the docs after installing Eldar.

"------------------------
" Syntax: highlighting
"------------------------
if has('syntax')
    " Override Eldar GUI colors
    g:eldar_red     = "#ff0000"
    g:eldar_yellow  = "#ffff00"
    g:eldar_green   = "#00ff00"
    g:eldar_cyan    = "#00ffff"
    g:eldar_blue    = "#0000ff"
    g:eldar_magenta = "#ff00ff"

    syntax enable             " Turn on syntax highlighting
    silent! colorscheme eldar " Custom color scheme
endif

I've tried with other properties as suggested in the docs:

g:eldar_text        = "#D3D3D3"
g:eldar_background  = "#2B2B2B"
g:eldar_term_text        = "White"
g:eldar_term_background  = "Black"

But I'm getting the same errors.

Any ideas about what can be wrong?
I'm using iTerm 2 & zsh on the latest version of macOS Mojave.

Thanks,

How to change line number's color?

After I changed the background image in terminal, the line number can't been recognition clearly. Like below:
screenshot

How can I change the color of the line number? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.