Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.
/ vadelma Public archive

Super sexy Vim/Neovim color scheme for GUIs and 256-color terminals

Notifications You must be signed in to change notification settings

severij/vadelma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

vadelma

Super sexy Vim/Neovim color scheme for GUIs and 256-color terminals.

vadelma

Table of Contents

Introduction

Vadelma (a Finnish word for raspberry) is a color scheme designed for Vim and Neovim text editors. All colors are carefully selected and picked from 256-color palette, so the color scheme should look the same both in GUIs and terminal emulators. Some inspiration for the colors were drawn from the standard color scheme of Spacemacs.

If you face any problems when installing or using Vadelma, don't hesitate to make a new issue.

Installation

Install using plugin manager

Place the following line in your .vimrc or init.vim:

Plug 'severij/vadelma'

While editing the config while, run commands

:source %
:PlugInstall

Place the following line in your .vimrc or init.vim:

call dein#add('severij/vadelma')

Then run command

:call dein#install()

Install manually

TODO

Usage

Basic setup

In order to apply the color scheme every time Vim/Neovim is started, place the following lines in your .vimrc or init.vim:

colorscheme vadelma
set background=dark

If you want to use the light version of Vadelma instead, just replace dark with light.

Enabling lightline colors

Add the following line to your .vimrc or init.vim:

let g:lightline = { 'colorscheme': 'vadelma'}

Changing background on the fly

Sometimes it's useful to switch between light and dark backgrounds on the fly, since it can improve the visibility of the editor depending on the lightning conditions. You can switch between light and dark background whenever you want by simply typing the command

:set background=dark|light

However, if you're using lightline, you may notice that the lightline colors won't change after you've executed the command. You may do what is suggested here and add this piece of code (notice that line with runtime ... was not part of the original code) to your .vimrc or init.vim:

augroup LightlineColorscheme
  autocmd!
  autocmd ColorScheme * call s:lightline_update()
augroup END
function! s:lightline_update()
  if !exists('g:loaded_lightline')
   return
  endif
  try
    if g:colors_name =~# 'vadelma'
      let g:lightline.colorscheme =
            \ substitute(substitute(g:colors_name, '-', '_', 'g'), '256.*', '', '')
      runtime autoload/lightline/colorscheme/vadelma.vim
      call lightline#init()
      call lightline#colorscheme()
      call lightline#update()
    endif
  catch
  endtry
endfunction

After this when you change background, the colors of lightline should also change.

If you don't like typing :set background=dark|light every time when you want to change background, you can use Tim Pope's plugin called unimpaired, which provides a nice mapping (and bunch of other very handy Vim-like mappings) for toggling between light and dark backgrounds. If you don't like unimpaired, you can write a similar mapping by yourself:

nnoremap <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR>

Plugin support

Implemented

TODO

Syntax support

Implemented

  • HTML
  • Python

TODO

  • Haskell
  • LaTeX
  • Ruby
  • Others?

Contributing

There are few ways you can help making Vadelma even better:

  • Choose colors for syntax highlighting of a programming language that is not yet implemented in Vadelma
  • Choose colors for highlight groups that are part of a plugin
  • Write documentation, find typos and grammar errors, or just point out unclear parts of the documentation

Pull requests are more than welcome, but please post a comment with before/after screenshots in the PR when color scheme itself is modified.

About

Super sexy Vim/Neovim color scheme for GUIs and 256-color terminals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published