The table below contains a subset of Apprentice’s palette. Working with 8/16 colorsĪs an alternative to changing your default TERM to xterm-256color or similar, you can keep its default value (usually something like xterm or screen) and set your terminal emulator to use the Apprentice colorscheme instead of its default colors. The actual value is highly dependent on your terminal emulator and/or your terminal multiplexer, though, so you will have to refer to their manual. The “ideal” TERM usually includes the string 256color, like xterm-256color. ![]() Assuming your terminal emulator actually supports 256 colors, you must instruct it to brag about its terminal-hood by setting the correct TERM environment variable. Most terminal emulators in use nowadays can display 256 colors but most of them use a default TERM that tells Vim otherwise. See this gist for more information and support status and, of course, :help termguicolors. But you can still try “True Color” if your setup satisfies the requirements with the following command: In practice, this new development doesn't change much for Apprentice which uses the exact same colors in the GUI as it does in the TUI anyway. This means that it is now not only possible but also very easy to have the exact same colors in TUI Vim and GUI Vim. Since January 2016, Vim has been able to talk in “True Color” to terminal emulators supporting that feature. There is nothing to do for GVim/MacVim as GUI Vim supports “True Color” by default. It supports lesser terminal emulators in the sense that it doesn’t break but it will definitely look “better” in more capable environments. ![]() ![]() Some code in iTerm, with TERM=xterm, using the Tango color palette:Īpprentice is designed first and foremost to look “good” in terminal emulators supporting 256 colors and in GUI Vim (GVim/MacVim). Some code in mintty, with TERM=xterm-256color: Some code in iTerm, with TERM=xterm-256color: It is essentially a streamlined version of the original, with a reduced number of colors entirely taken from the default xterm palette to ensure a similar look in 256colors-ready terminal emulators and GUI Vim. Apprentice is a dark, low-contrast colorscheme for Vim based on the awesome Sorcerer by Jeet Sukumaran.
0 Comments
Leave a Reply. |