Is there a Vim color scheme that matches Sublime's default Monokai?

vim
11,730

First, GVim/MacVim will be mandatory if you want your colors to match Sublime's as terminal emulators are usually limited to 256 colors.

Second, if you only want Vim's colors to match Sublime's, you'll probably need to tweak the colorscheme itself or send their author a formal feature request.

Third, Vim doesn't highlight method names by default so no colorscheme will give that to you for free but you can try the example given under :help tag-highlight. There's also this plugin and this one.

All the "tag highlighting" solutions depend on the presence of a tags file.

Share:
11,730
Sam Selikoff
Author by

Sam Selikoff

@samselikoff

Updated on October 02, 2022

Comments

  • Sam Selikoff
    Sam Selikoff over 1 year

    I'd like it to have decent syntax highlighting too - especially for JavaScript. (e.g. method names should be highlighted).

    Here's Sublime:

    enter image description here

    I've come across a few. Here's sickill/vim-monokai:

    enter image description here

    and tomasr/molokai:

    enter image description here

    But, as you can see from the screns, they don't seem to match Sublime's colors/syntax highlighting. Are there any others?

    • Kent
      Kent over 9 years
      I don't use this colorscheme, but have you tested in gvim or terminal vim? and don't put too much effort on color stuff.
    • Sam Selikoff
      Sam Selikoff over 9 years
      I'm using terminal vim, haven't used gvim. Color is not as important as highlighting. I really like being able to see the key names highlighted in a JS object.
    • Kent
      Kent over 9 years
      give gvim a try. for terminal you can set different color palette. and you won't in terminal vim have exactly same color as Sublime's. since terminal has only 256 colors.
    • Sam Selikoff
      Sam Selikoff over 9 years
      Hm, good to know. One of my main motivations for trying out vim is to stay in the terminal, next to my servers, etc, so I'm not sure gvim would interest me. Are any terminals capable of more than 256 colors?
    • chepner
      chepner over 9 years
      @SamSelikoff You can start looking at gist.github.com/XVilka/8346728, which tries to document terminal support for true color.
    • Marco A.
      Marco A. over 9 years
      AFAIK this style wasn't invented by ST, but it's the monokai color theme by Wimer Hazenberg
    • OscarRyz
      OscarRyz over 8 years
      This deleted answer worked for me: stackoverflow.com/a/25186612/20654 (use molokai from: github.com/tomasr/molokai )
  • Sam Selikoff
    Sam Selikoff over 9 years
    Interesting, looks like if I do some work I may be able to swing it. Thanks for the references!