jpo / vim-railscasts-theme Goto Github PK
View Code? Open in Web Editor NEWA vim color scheme based on the Railscasts Textmate theme.
A vim color scheme based on the Railscasts Textmate theme.
Hey man, thanks a lot for this theme. It's exactly what I was looking for; nice, earthy tones and good contrast between different elements.
However, it has an issue. When Javascript is contained in a HTML file, the syntax highlighting is crippled in VIM (that's a fact of life and not related to your theme). Most severely, it sets all Javascript variable names to the "Special" color.
In this case, "Special" means a really difficult to read dark green (even worse if your terminal has a transparent background like mine does; it's nearly unreadable, but in my example below I use a pure black). The "Special" color in the theme is only meant to be used for little single characters here and there, and not for the main code, which is why it's such an awful color when it's suddenly applied to all variable names.
So I went through most of the 255 "cterm" colors to find a really nicely contrasting, bright-but-not-too-bright color that fits in well and makes VIM behave when editing .html files with embedded code, as well as working perfectly with transparent terminals. Here's the before and after (non-transparent terminal):
I made sure it still looks perfect in all other languages such as .rb files, .js, .php etc, so that "Special" doesn't lose its main purpose of highlighting special characters. In fact I think it looks much better in those languages too, since the lighter blue makes the special characters that "Special" is intended for stand out!
Here is the change (for both GUI and terminal VIM):
hi Special guifg=#50a19f ctermfg=73
I'll leave it up to you whether you want to commit the change or not. I've already done it on my local copy since the colorscheme was unusable for .html editing before this change. ;-)
I have the original theme with more use of white, it is superior to the current one with it's abuse of red.
That is all.
Greetings. I've using vim on Ubuntu 11.04. I've downloaded scheme in proper directory
:~$ ls ~/.vim/colors/
railscasts.vim
than I launched vim, enter :colorscheme railscasts and get following colors
http://img20.imageshack.us/img20/9388/vimrailscasts.png
How can I fix it?
Thanks
Hi jpo,
i really like your vim config, could u share your vim configration?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.