MIT License

项目介绍

jasonlong/lavalamp 是一个托管在 GitHub 上的开源项目,主要使用 VimL 编写,采用 MIT License 许可证,目前获得 326 个 Star、8 次 Fork。

仓库全名
jasonlong/lavalamp
开源许可证
MIT License
Star 数
326
Fork 数
8

README 摘要

Lavalamp is a WIP text editor theme. It currently works in Vim, but I hope to port it to Atom and Sublime Text. ==== Installation Copy lavalamp.vim to your .vim/colors directory. $ cd lavalamp/vim $ cp lavalamp.vim /.vim/colors/ Then update your .vimrc with these lines: syntax enable set background=dark colorscheme lavalamp If you're using airline, you can install the lavalamp theme for that. $ cd…

完整内容见 GitHub 原始 README 或本页 。

常见问题

lavalamp 用什么语言开发?

主要使用 VimL 编写,采用 MIT License 许可证,目前有 326 个 Star。

lavalamp 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 lavalamp 的源码?

可以直接克隆仓库:git clone https://github.com/jasonlong/lavalamp.git,默认分支为 master;安装与运行步骤见仓库 README。

lavalamp 最近还在维护吗?

仓库最近一次更新为 2019年2月15日,当前没有未关闭的 Issue;Star 数为 326,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A text editor theme that visually differentiates languages.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
343
价值分
198
活跃状态
归档

语言占比

CSS
Vim Script

贡献者

README

Lavalamp is a WIP text editor theme.

It currently works in Vim, but I hope to port it to Atom and Sublime Text.

====

Installation

Copy lavalamp.vim to your .vim/colors directory.

$ cd lavalamp/vim
$ cp lavalamp.vim ~/.vim/colors/

Then update your .vimrc with these lines:

syntax enable
set background=dark
colorscheme lavalamp

If you’re using airline, you can install the lavalamp theme for that.

$ cd lavalamp/vim/autoload/airline/themes
$ cp lavalamp.vim ~/.vim/autoload/airline/themes/

For the iTerm theme, you should be able to double-click on the lavalamp/iterm/lavalamp.itermcolors file to install it.

If you’re using CoffeeScript, I highly recommend installing the vim-coffee-script plugin since it offers much better syntax highlighting (which lavalamp utilizes).

For xterm, you should copy the contents of xterm/Xresources to your ~/.Xresources.

Terminal Vim

If you’re running Vim in a terminal (as opposed to MacVim, etc.) this colorscheme won’t work by default. You can use the CSApprox plugin to get it working though. You also may need to add this line to your .vimrc:

set t_Co=256

Design principles

The idea behind the theme is that each language has its own core color. This way, it’s easier to visually differentiate languages when they’re used together.

For example, HTML uses shades of blue while Ruby uses red. Then it’s easy to see your ERB tags:

CSS uses purple (an homage to @mdo):

In a Sass file, it’s easy to see vanilla CSS vs. Sass (which is red, since it’s Ruby):

I’ve chosen green for Javascript:

And browns for Coffeescript:

The iTerm and Terminal themes look like so:

Contributing

  1. Fork it ( http://github.com/jasonlong/lavalamp/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

If you’d like to add support for addtional languages, you’ll need to add new entries for each syntax scope. I have found vim-HiLinkTrace to be very handy for figuring out what a given scope a character is in. Once you’ve installed that (via Vundle, NeoBundle, etc.), you can add a keyboard shortcut to your .vimrc. This is what I use:

nmap <leader>h :HLT<CR>

Then, when your cursor is over a character you want to know about, hit <leader>h and the syntax scope will be shown at the bottom of your Vim window. Create a new line with this in lavalamp.vim.

Roadmap

I’ve been using this theme for a while in this state since these are the languages I mostly use. If more people want to use the theme, more languages will need to be fleshed out.

And I’d really :heart: some help getting this working with Atom and Sublime as similarly as possible.

评论

暂无评论