104

GitHub - noahfrederick/vim-noctu: A Vim color scheme for 16-color terminals

 6 years ago
source link: https://github.com/noahfrederick/vim-noctu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

noctu.vim

A Vim color scheme for 16-color terminals

Actually, this color scheme has a more specific use. Rather than specifying particular color values for Vim, I prefer to have consistent colors across all software that I use in the terminal (e.g., colored output from git, tmux's status bar, etc.). Towards that end, this scheme is restricted to 16 ANSI colors (0 through 15), the representation of which can be redefined by configuring your terminal emulator. This means that you can change your color scheme "globally" without having to edit this script.

The color scheme has been tested against the following file types:

  • Git (commit messages, etc.)
  • JavaScript
  • Markdown
  • Shell
  • Vim help
  • Vim script
  • Vimwiki

Appearance

Here's what Noctu looks like in OS X's Terminal.app with a custom theme:

Screen shot of Terminal

Notice that vim, tmux, and the output from git-log share the same palette.

Installation

Just stick noctu.vim in your colors/ directory, or if you manage your plug-ins with pathogen:

git clone git://github.com/noahfrederick/vim-noctu.git ~/.vim/bundle/noctu

You can find the latest version of this scheme in the GitHub repository. If you're looking for a color scheme for GUI Vim, you may be interested in Hemisu by the same author.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK