Giter VIP home page Giter VIP logo

vim-gotham's Introduction

Logo

It's the colorscheme we set that defines us. โ€”ย (Batman)

Gotham is a very dark vim colorscheme. It works on GUI vim (MacVim or gVim) and on terminal vim. For terminal vim, there's support for a lot of terminal emulators in the gotham-contrib repository.

Screenshot of the color scheme

Installation

I moved to vim-plug a while ago and never looked back. Anyway, you can install Gotham with whatever package manager you use. For example:

" vim-plug
Plug 'whatyouhide/vim-gotham'
" NeoBundle
NeoBundle 'whatyouhide/vim-gotham'
" Vundle
Plugin 'whatyouhide/vim-gotham'
" dein.vim
call dein#add('whatyouhide/vim-gotham')

If you don't use a plugin manager just copy the content of vim/colors/ to ~/.vim/colors.

When you have the plugin installed, you can set it in your vimrc:

colorscheme gotham

Terminal vim and 256 colors version

If you want to use Gotham in terminal vim, you should consider setting Gotham as the colorscheme of your terminal emulator too. See the relevant section.

If you're fine with not-so-faithful colors, a 256 colors version of Gotham is available. To use it, just replace gotham with gotham256 in your vimrc:

colorscheme gotham256

Using gotham256 (given that your terminal supports 256 colors) ensures that the colors in vim are fixed and don't depend on the colorscheme of the terminal emulator.

Please, use the 256 colors version only if you know what you're doing since it looks "rougher" than the regular version.

Airline

Gotham supports vim-airline out of the box. When you use the Gotham colorscheme, Airline should be able to pick it up and use it. If you want to set it manually, you can use the AirlineTheme command for both the regular version and the 256 colors version:

:AirlineTheme gotham
:AirlineTheme gotham256

Gotham by default emphasises the usage of insert mode by using a distinctive bright yellow color in the airline mode segment. To change the color used for insert mode to a darker less emphasised color add the following to your vimrc:

let g:gotham_airline_emphasised_insert = 0

Lightline

Gotham supports lightline.vim too. To enable the colorscheme, add one of the following lines to your .vimrc:

let g:lightline = { 'colorscheme': 'gotham' }
let g:lightline = { 'colorscheme': 'gotham256' }

Other

Gotham is available for other platforms too. If you want terminal vim to look as good as GUI vim, you have to install the Gotham colorscheme for your terminal emulator too.

An up-to-date list of supported platforms as well as installation instructions for each of those platforms are available at the gotham-contrib repository.

There's an Emacs version too, but I don't maintain it.

Color Palette

Color Base Hex Other Colors Hex
Base 0 #0c1014 Red #c23127
Base 1 #11151c Orange #d26937
Base 2 #091f2e Yellow #edb443
Base 3 #0a3749 Magenta #888ca6
Base 4 #245361 Violet #4e5166
Base 5 #599cab Blue #195466
Base 6 #99d1ce Cyan #33859E
Base 7 #d3ebe9 Green #2aa889

Contributing

All forms of contribution are welcome: bug reports, bug fixes, pull requests and simple suggestions. Thanks!

List of contributors

You can find the list of contributors here.

License

MIT ยฉ 2014 Andrea Leopardi, see the license.

vim-gotham's People

Contributors

aalvarado avatar aerosol avatar benjumanji avatar cenkalti avatar chemzqm avatar fcobos avatar frescoraja avatar friedsock avatar get-me-power avatar gummesson avatar gutierri avatar keremc avatar pgdouyon avatar sebastianmarkow avatar shmerl avatar stayradiated avatar vinhowe avatar whatyouhide avatar yelfathi 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-gotham's Issues

Is it possible to differentiate between error types

I am using NVIM LSP with LSPSAGA and here is how the errors and warning are displayed with gotham enabled.

image

Here is how they are displayed in Nord color scheme.

image

I absolutely love vim-gotham, and wanted to ask if there is any way to add little color tints to the error, warning and info icons?

Search Highlight is kind of unusable with unite.vim

The only blackspot for me with this theme:

Note that it is almost impossible to actually read the matched term on the first line (the term is Base and it's in the blackhole between extends and TimeSeriesSpec). This is a screenshot taken from within unite.vim's grep source, but the same applies to any other searches. It's enough that I am starting to think about departing from the one true batman path, and going with other themes. Thoughts?

Wrong color for Error and WarningMsg

I get following pic by running :verbose hi command. Error seems wrong for gotham theme.
screenshot 2016-04-19 23 12 20

...and WarningMsg:
screenshot 2016-04-19 23 14 54

I fixed the problem temporarily by overriding these 2 in my init.vim file:
screenshot 2016-04-19 23 17 13

Should I send a PR?

AirlineTheme does not applied on launch Vim

From: 4507f9d
Version: VIM - Vi IMproved 8.0.297 (on OS X from here), VIM - Vi IMproved 7.3 (on OS X default CUI)

Problem

Launch Vim with vim -u NORC -N --cmd "set ls=2" --cmd "set runtimepath+=~/.vim/bundle/vim-airline,~/.vim/bundle/vim-gotham" --cmd "colorscheme gotham256" (This only load airline and gotham) AirlineThene does not applied automatic on launch. Before 4507f9d, it applied.

Erase near L88-99 in autoload/airline/themes/gotham256.vim, it does not occur. But I don't know how to fix these lines.

yellow color seems out of place in Gotham color pallet

This especially shows in the Airline theme when going in insert mode.
Compared with the color hue's used in other parts of the UI and compared to the colors for normal and visual mode (bright yellow, and green respectively) the yellow color just seems off, lowering the saturation of the color helps but doesn't solve it completely.

below two screenshots that illustrate this, side note: I use the Gotham ergo theme for Iterm.

the insert mode yellow:
screen shot 2016-01-30 at 18 49 44

The profile overview of the Gotham ergo theme, note that the yellow color is the same in all iterm colors chemes:
screen shot 2016-01-30 at 19 02 52

I'm curious as to what your opinion is on the mather and how this yellow color came about.

Use "standard" colours for vimdiff

While the theme itself is marvelous, diffs are extremely confusing with gotham.

image

Using more intuitive backgrounds would help here, i.e. red -> deletion, green -> addition, else -> changed.

base16 request.

This is more of a request than a bug. I love this theme, but.. I love the consistency of base16. Can you guys port this over to base16-shell? This would require base16-shell, base16-vim, vim-airline-themes changes, if you do.

error with Airline when opening terminal mode

I'm using the gotham theme with Airline. When I open a new split for a terminal window using the :term command (added in vim 8.1), I get the following error:

screen shot 2018-08-13 at 9 35 24 pm

This does not happen with any other color themes.

Emacs port feedback

It happened.

I've tried matching the colors from your screenshot as closely as possible. It would be very useful if you could provide me extra screenshots and point out obvious mistakes. For instance I'm less sure about comments having almost the same color as the Ruby keywords. Once all of them are fixed, I'll proceed theming more packages and will add the mappings for the terminal version.

Normal gotham didn't look dark as the 256 version on Iterm2

Hi guys, I've applied the gotham colorscheme but for some reason it looks with a grey background and orange keywords along with some other pale colors. That's not how it is supposed to be, when I changed it to the 256 version it looks great, so I don't know what makes the normal version looks like that.

I've download the last version from the site and manually putted in ~/.vim/colors folder.
I see this problem only when I use iTerm2 as the terminal. In the default terminal looks fine.

pd: Even when the 256 versions looks something better, there are a lot of difference to what you showed in the screenshot. That screenshot looks awesome, and is nowhere near it how it looks my terminal. Is it that normal? do I need to change something else?

More tests (normal version not 256):
On default terminal looks dark, but lot of colors are not correct.
On Iterm2 looks bad, greyed pale colors.
On MacVim looks awesome, how it should be on on my terminal.

How did you pick the color palette/scheme?

I love this color scheme so much! I'm really curious, how did you pick the color palette/scheme? What should one do if they wanted to make their own color palette/scheme? How should one start?

Functions turned to yacky colors

This is the most awesome theme out there, but for some reason, the functions became this yucky color:

selection_072

Why did it change, is it possible to go back to a little brighter color?

Buffer name text too dark

Changes introduced here: #26

I feel that the text on the buffer name (tab file name) is too dark.

(with transparency)
screen shot 2017-03-22 at 9 09 42 am

screen shot 2017-03-22 at 9 10 28 am

Screenshot from the README:
687474703a2f2f692e696d6775722e636f6d2f4e66527548464e2e706e67

I feel the last screenshot shows better colors for filenames. Is this something that anyone else is experiencing?

I've been having a hard time switching through tabs since my brain takes a bit more to try and identify the filename, before it was very quick, now my eyes dance a bit around the tab to read the name.

thanks!

Not working in iTerm 2 + terminal vim

ITerm2 version

screenshot 2014-10-02 22 57 08

my zshrc

vim version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 21 2014 20:02:26)
MacOS X (unix) version
Included patches: 1-258
Compiled by Homebrew
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_binary
+arabic          +find_in_path    -mouse_sysmouse  +tag_old_static
+autocmd         +float           +mouse_urxvt     -tag_any_white
+balloon_eval    +folding         +mouse_xterm     +tcl
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +fullscreen      -mzscheme        +textobjects
+cindent         -gettext         +netbeans_intg   +title
+clientserver    -hangul_input    +odbeditor       +toolbar
+clipboard       +iconv           +path_extra      +transparency
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
+dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     +xim
+emacs_tags      +mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
+farsi           +mouse_netterm   +syntax
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -F/System/Library/Frameworks -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector -L/usr/local/lib  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE -lperl -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby
--------------------------------------------------------------------------------

my vimrc

Problem

Install scheme from Vundle (before that was seul256 color scheme) and mu vim like as:
screenshot 2014-10-02 22 55 58

But when I open macvim scheme work correct
screenshot 2014-10-02 22 53 26

I upset ๐Ÿ˜ญ

P.S.: I find tread in reddit and I use seoul256-iTerm2 colors in terminal

Can't select gotham256 at startup in .vimrc

I get the following error when adding colorscheme gotham256 to my .vimrc:

Error detected while processing /usr/share/vim/vim74/syntax/synload.vim:
line 19:
E185: Cannot find color scheme 'gotham-256'

I think the problem stems from this line in colors/gotham256.vim:

let g:colors_name = 'gotham-256'

This makes vim expect gotham-256.vim when it in fact wants gotham256.vim. Switching the line to:

let g:colors_name = 'gotham256'

works correctly.

Repo readme images look broken

Airline theme support for transparent terms

Hi!

I use a transparent term , so in my .vimrc I have the following set

hi Normal             ctermbg=NONE
hi Statement          ctermbg=NONE
hi Title              ctermbg=NONE
hi Todo               ctermbg=NONE
hi Underlined         ctermbg=NONE
hi ErrorMsg           ctermbg=NONE
hi LineNr             ctermbg=NONE

This pretty much works as intended apart from in the gotham theme when I have a split window I end up with some odd red artifacts around the filetype of the unselected split. I have no idea why these appear. Any ideas?

gotham

In this case it is the left pane that is unselected.

EDIT: Just noticed that if I source my .vimrc the red bits disappear, but as soon as I switch splits, they return.

NeoVim support

As title. While I haven't tested it. I think the problem is that the support of nvim-treesitter/nvim-treesitter is needed.

update: OK it doesn't work:

Airline gotham256 not working

gotham256 not autoloaded on startup, and when force replacing airline theme with AirlineTheme gotham256 the following errors appear:

screen shot 2017-05-14 at 3 11 16 pm

Any help would be appreciated!
thanks

Please add a color definition for Function group

From :help group-name

Function       function name (also: methods for classes)

Many themes highlight function names differently than default color, making them more visible. Currently vim-gotham doesn't do it because Function definition is missing.

See example with Rust syntax highlighting (note that fn which is a keyword and main which is a function name are the same color here which doesn't look so well):

no_function_color

Example of how it can look better:

function_color

Sample definition for the color and group:

let s:colors.sea   = { 'gui': '#4d618e', 'cterm': 4  }

" Function.
call s:Col('Function', 'sea', s:background)

Strange cursor color over brackets.

That's a weird behavior. I hope i can explain it clearly.

When the cursor goes over a bracket character the character becomes orange with dark background, and the matching character becomes dark with orange background. It make it looks like the cursor have jumped to the matching character. It's very disorienting.

Maybe some screenshots will help.

gothan-cursor-before
gothan-cursor-over
gothan-cursor-after

Tmux + set termguicolors in neovim weird behaviour

Something ain't right with the way colors are rendered when neovim is using termguicolors and is running inside a tmux session:

Tmux session + neovim + termguicolors:
screen shot 2017-02-07 at 19 22 03

Neovim + termguicolors:
screen shot 2017-02-07 at 19 23 33

I'm not really sure what is causing the unexpected behaviour.
term is correctly set to screen-256color
termguicolors is enabled in both instances

When I disable termguicolors whilst in tmux then the colors do render better but termguicolors should work in tmux sessions as I can successfully use other colorschemes that way.

Extra color shades?

Hello, I've considered porting your theme to Emacs as an alternative to Solarized Dark, but before I'll do that I'd like to ask whether there will be extra color shades to the already existing colors, such as a darker and lighter cyan. If these are available, colored backgrounds that are different from the main shades are possible and can be used for things like completion popups:

base4 for SpecialKey is too bright / too similar to the comments

As a result, it's a bit confusing: non-printed symbols are mixed with comments since comments too use base4 colour. Even base3 may be a bit too bright, but is still much better.

diff --git a/colors/gotham.vim b/colors/gotham.vim
index 82ba3de..093b26a 100644
--- a/colors/gotham.vim
+++ b/colors/gotham.vim
@@ -135,7 +135,7 @@ call s:Col('Type', 'orange')
 call s:Col('PreProc', 'red')

 " Tildes on the bottom of the page.
-call s:Col('NonText', 'base4')
+call s:Col('NonText', 'base3')

 " Concealed stuff.
 call s:Col('Conceal', 'cyan', s:background)
@@ -151,7 +151,7 @@ call s:Col('StatusLineNC', 'base4', 'base2')
 call s:Col('MatchParen', 'base1', 'orange')

 " Special keys, e.g. some of the chars in 'listchars'. See ':h listchars'.
-call s:Col('SpecialKey', 'base4')
+call s:Col('SpecialKey', 'base3')

 " Folds.
 call s:Col('Folded', 'base6', 'blue')

(EDIT: NonText should be edited as well as SpecialKey.)

Theme looks light

I'm new to vim (and I use neovim) so maybe I did some stupid mistake and can't find it.
Here is my init.vim

set nocompatible

let $PATH = $PATH . ':' . expand("~/.local/bin") . ':' . expand("~/.composer/vendor/bin")

call plug#begin('~/@stuff/vim/nvim_my/plugged')

Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'

" ======== THEMES =========
" Plug 'rakr/vim-one'
Plug 'whatyouhide/vim-gotham'

call plug#end()

colorscheme gotham

And here is how the theme looks like:
image

Why does it look white?

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.