GithubHelp home page GithubHelp logo

zelint / onedark.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshdick/onedark.vim

0.0 1.0 0.0 229 KB

A dark Vim colorscheme inspired by Atom's One Dark syntax theme.

License: MIT License

Vim Script 100.00%

onedark.vim's Introduction

onedark.vim

A dark Vim colorscheme for the GUI and 16/256-color terminals, based on FlatColor, with colors inspired by the excellent One Dark syntax theme for the Atom text editor.

onedark.vim Preview

Preview image taken using:

Installation

Place onedark.vim in your ~/.vim/colors/ directory either manually or by using your Vim plug-in manager of choice, then add the following lines to your ~/.vimrc:

syntax on
colorscheme onedark

Options

Note: All options should be set before the colorscheme onedark line in your ~/.vimrc.

  • g:onedark_termcolors: Set to 256 for 256-color terminals (the default), or set to 16 to use your terminal emulator's native colors (see below).

  • g:onedark_terminal_italics: Set to 1 if your terminal emulator supports italics; 0 otherwise (the default).

16-Color Mode

Adding let g:onedark_termcolors=16 to your ~/.vimrc will cause the theme to use your terminal emulator's native 16 colors. (Make sure this line appears before the colorscheme onedark line!)

This theme looks best in 16-color mode when using its custom 16-color palette. If you don't use the custom 16-color palette in your terminal emulator while 16-color mode is enabled, the theme's colors will not display correctly.

The canonical version of the 16-color palette is an iTerm2 color scheme called One Dark.itermcolors, which lives in the root of this repository. This theme only works with the test/beta releases of iTerm2 (versions 2.9.x and later.)

You should be able to easily convert the iTerm2 color scheme for use with your terminal emulator of choice by using a tool like termcolors.

Neovim

If you're using Neovim and your terminal supports true colors, you may choose to use Neovim's true color terminal support instead of using this theme's 16-color mode and associated terminal color palette as described above.

This prevents you from needing to use this theme's 16-color terminal palette in order to see proper colors when using this theme in terminal Neovim. (When using this approach, if your terminal's background color doesn't match the theme's background color, you may see a border around Neovim.)

To use Neovim's true color terminal support, simply add the following lines to your ~/.vimrc (or just add let $NVIM_TUI_ENABLE_TRUE_COLOR=1 without the if statement if you're using Neovim-specific configuration):

if has("nvim")
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif

vim-airline Theme

A companion vim-airline theme for this theme is available at joshdick/airline-onedark.vim.

onedark.vim's People

Contributors

jhbabon avatar joshdick avatar zelint avatar

Watchers

 avatar

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.