GithubHelp home page GithubHelp logo

scruffydan / submonokai-vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erichdongubler/vim-sublime-monokai

1.0 1.0 0.0 4.09 MB

Vim Monokai color scheme that tries to be as faithful as possible to Sublime's Monokai syntax highlighting

License: MIT License

Vim Script 100.00%

submonokai-vim's Introduction

Submonokai for Vim

SubMonokai is a refined Monokai color scheme for vim and neovim.

It's forked from the following excellent theme:

There are several plugins used to enhance highlighting. Where possible, the dependent plugins have been noted for languages whose highlighting would otherwise be impossible to make equivalent to Sublime. Conflicts with other plugins that I've used have been noted. You will NOT get full fidelity with Sublime's highlighting if you use conflicting plugins with this color scheme enabled.

Installation

Use your favorite plugin manager! Alternatively, download the colors/submonokai.vim file and move it into your colors folder.

Usage

After installing this plugin via your favorite plugin manager, add the following to your vimrc:

syntax on
colorscheme submonokai

Inside of submonokai.vim one will find notes and suggested variations from exact Sublime colors that contributors have found to be superior to vanilla Sublime. It is recommended that you take a look and see if there's anything you like! Deficiencies in syntax highlighting support that make it impossible to achieve parity with Sublime have also been noted. These are prime candidates for PRs if you find a plugin with better syntax highlighting groups!

Terminal support

SubMonokai only support 256 colours in terminal. If you are using a terminal which support truecolor like iterm2, enable the GUI color by adding the following to your vimrc:

set termguicolors

Otherwise, use below setting to activate the 256 color in terminal

set t_Co=256

Configuration

Italics

By default italicized text is enabled in GUI (gVim), but in terminal it's not. If you are using a font that support italics in terminal, add the following to your .vimrc:

let g:sublimemonokai_term_italic = 1

Language-specific configuration

In order to provide an experience with parity to Sublime, this color scheme integrates with the highlighting groups that several language-specific plugins specify. You will need to install these plugins in order to have Sublime-like highlighting.

Java

There are two flavors you can pick from here -- see below sections for more details.

Mainline vim's Java

Mainline vim Java

This is the recommended option for Java. You will need at least the following configuration for proper color support:

let java_comment_strings=1
let java_highlight_functions=1
let java_highlight_java_lang_ids=1

Using vim-java

Using vim-java

  1. vim-java for the core language

Javascript

Javascript

  1. vim-javascript for the core language
  2. vim-javascript-lib, for popular Javascript libraries, like underscore and Backbone.

Conflicts with Javascript

Go

Go

  1. vim-go for the core language

    You will need at least the following configuration for proper color support:

    let g:go_highlight_format_strings = 1
    let g:go_highlight_function_arguments = 1
    let g:go_highlight_function_calls = 1
    let g:go_highlight_functions = 1
    let g:go_highlight_operators = 1
    let g:go_highlight_types = 1

    The following are also provided as options by vim-go and are handled gracefully:

    let g:go_highlight_extra_types = 1
    let g:go_highlight_fields = 1
    let g:go_highlight_generate_tags = 1
    let g:go_highlight_variable_assignments = 1
    let g:go_highlight_variable_declarations = 1

    This should cover all options provided by vim-go pertaining to highlighting. If you notice that this is out-of-date, please submit a PR!

PHP

PHP

  1. StanAngeloff/php.vim for the core language

    You will need at least the following configuration for proper color support:

    let g:php_var_selector_is_identifier = 1

Other Screenshots

HTML

HTML

submonokai-vim's People

Contributors

alessandro-f-martins avatar crusoexia avatar erichdongubler avatar leighmcculloch avatar scruffydan avatar

Stargazers

 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.