Live data from Hacker News

Vim Colors

vimcolors.com

21–30 of 110 posts

Re: Vim Colors

#21

I wish I could choose a language to preview the schemes with. My biggest gripe with many of these themes is that is looks great in some languages and terrible for everything else.

Slightly related, I don't like (mostly in OOP langs) when I have something like: import lang.native.api.Something; import third.party.api.Else; ...and syntax file goes to colorize Something , but Else is perceived as common text. I'm aware of limitations of vim, being text editor and not an IDE, but I'd rather syntax file to ignore the native API then to have me draw visual distinction between native and third-party…

I agree many of the default Vim syntax highlighting files leave a lot to be desired. You can improve it though and Vim highlighting is actually very powerful. I use a C syntax highlighting improvement plugin to add (among other things) highlighting to operators and function names in calls[1].

You can also quite easily customise syntax highlighting by placing your own additional syntax file in .vim/after/syntax for a language. I use this to add some more custom keywords. You could quite easily add highlight support for ".Else" in an after/syntax file.

[1] https://github.com/justinmk/vim-syntax-extra

Re: Vim Colors

#22
When filtering by Light, some color schemes come through that are Dark. Is this a bug or do those color schemes have both light and dark versions? I looked at one of the dark "light" schemes and it didn't seem to have a light version on the github page.

Re: Vim Colors

#23

Can anyone recommend color schemes other than Solarized that have extensive support across board (not only vim, but all the plethora of terminal emulators, command-line applications, etc.)? Solarized is too low-contrast for me, so I have hacked-on support for hybrid (solarized syntaxes + tommorow color codes), but it's not really uniform. And, imho, well-balanced contrast is the most important thing. Non-exhaustive l…

Base16 is probably what you want: https://github.com/chriskempson/base16 There is a related project called Base16-Builder: https://github.com/chriskempson/base16-builder With Base16-Builder you can make a Yaml file of colours and it will build profiles for a zillion apps. It's pretty easy to hack to build other profiles as you just need to make an erb. Base16 is organized in pretty much the same way as Solarized colo…

Base16 looks amazing. I'm gonna steal an hour or two of today and give it a whirl.

Thank you!

Re: Vim Colors

#24

I wish I could choose a language to preview the schemes with. My biggest gripe with many of these themes is that is looks great in some languages and terrible for everything else.

Yes.

Especially when you switch from C-style languages to assembly, for example. Or to line-break sensitive formats like Python or YAML. Or markdown.

Re: Vim Colors

#25

Awesome post! I love the Tomorrow-Night theme: Vim: http://i.imgur.com/HBaCTAu.png Zsh: https://github.com/sindresorhus/pure On Github: https://github.com/chriskempson/tomorrow-theme/blob/master/v...

Seconded. Tomorrow-Night is an amazing theme with several variants (blue, black, light...) and compatibility with everything. Even the Chrome Devtools.

Re: Vim Colors

#27
I find myself often switching between dark/light colorschemes when I'm working inside/outside. However, this is a quite annoying task, I have to change the colorscheme of my terminal, and of Vim. Besides, I have multiple Vim sessions running in various tmux/terminal tabs, so when I switch to a different tab, I have to change the colorscheme of Vim again.

Then when I go inside/outside again I have to switch it all back. Quite a hassle. Has anyone found any trick to automate this? For starters I wouldn't know how to change the colorscheme of all my Vim sessions. Can you send a signal to your Vim sessions maybe? Then changing the terminal colorscheme is of course dependent on the terminal app you're using.

Re: Vim Colors

#29
post #12

I wish I could choose a language to preview the schemes with. My biggest gripe with many of these themes is that is looks great in some languages and terrible for everything else.

I agree. I sent a tweet to the author requesting it, hopefully he sees it: https://twitter.com/shawnps/status/615780187800629248

Yep, saw it, thanks :)

Re: Vim Colors

#30
post #20

Awesome post! I love the Tomorrow-Night theme: Vim: http://i.imgur.com/HBaCTAu.png Zsh: https://github.com/sindresorhus/pure On Github: https://github.com/chriskempson/tomorrow-theme/blob/master/v...

This is unrelated, but in the first screenshot, how do you get a terminal windows inside vim ? ( git in the top right). I guess it is a neovim feature.

Yes, neovim has an integrated terminal.
Post reply on HN