You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-53Lines changed: 26 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Apprentice is a low-contrast colorscheme for Vim based on the awesome [Sorcerer](http://www.vim.org/scripts/script.php?script_id=3299) by Jeet Sukumaran.
4
4
5
-
It’s 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 256 colors-ready terminal emulators and GUI Vim.
5
+
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.
6
6
7
7
Some JavaScript, in MacVim:
8
8
@@ -22,52 +22,48 @@ Apprentice is designed first and foremost to look “good” in terminal emulato
22
22
23
23
### GVim/MacVim
24
24
25
-
There’s nothing to do for GVim/MacVim as GUI Vim supports millions of colors by default.
25
+
There is nothing to do for GVim/MacVim as GUI Vim supports millions of colors by default.
26
26
27
-
### Terminal emulators
27
+
### 256color-ready Terminal emulators
28
28
29
29
Most terminal emulators in use nowadays *can* display 256 colors but most of them use a default `TERM` that tells Vim otherwise. 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.
30
30
31
-
Here are a bunch of common terminal emulators and their “ideal” `TERM`:
31
+
The “ideal” `TERM` usually includes the string `256color` like `xterm-256color`. 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.
Please refer to your terminal emulator’s manual for how to set it up properly.
35
+
As 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.
44
36
45
-
NB: I’ve started [a wiki page](https://github.com/romainl/Apprentice/wiki/256-colors-and-you.) listing the procedures for the terminal emlators above.
37
+
The table below contains a subset of Apprentice’s palette. You can use a color picker or copy/paste these values:
46
38
47
-
For best results, it’s recommended to adjust your background color to the one used in the GUI/256color version of Apprentice:
| Foreground color |`#BCBCBC`|||
50
+
| Background color |`#262626`|||
48
51
49
-
* xterm color: `235`
50
-
* hexadecimal color: `#262626`
51
-
52
-
### Terminal multiplexers
53
-
54
-
Screen and tmux don't respect your terminal emulator’s settings and set your `TERM` to their default value, `screen`. For better color support, the recommended `TERM` for both multiplexers is `screen-256color`.
55
-
56
-
#### tmux
52
+
The same JavaScript as above, in iTerm, with `TERM=xterm`, using the color palette below:
For best results, it is recommended to adjust your background color to the one used in the GUI/256color version of Apprentice:
65
60
66
-
term "screen-256color"
61
+
* xterm color: `235`
62
+
* hexadecimal color: `#262626`
67
63
68
64
## Installing Apprentice.
69
65
70
-
A colorscheme must be placed in a directory named `colors` that’s somewhere in Vim’s `runtimepath`:
66
+
A colorscheme must be placed in a directory named `colors` that is somewhere in Vim’s `runtimepath`:
71
67
72
68
The canonical location is:
73
69
@@ -79,29 +75,6 @@ but it could be:
79
75
80
76
or whatever works for you.
81
77
82
-
### Working with a 8 colors terminal
83
-
84
-
As an alternative to `xterm-256color`, you can also leave your `TERM` at its default value, (usually `xterm` or `screen`, as we saw earlier) and set your terminal emulator to use the Apprentice colorscheme instead of its default colors.
85
-
86
-
The same JavaScript as above, in iTerm, with `TERM=xterm`, using the color palette below:
| 0 | Black |`#1C1C1C`|`#444444`|
95
-
| 1 | Red |`#AF5F5F`|`#FF8700`|
96
-
| 2 | Green |`#5F875F`|`#87AF87`|
| 4 | Blue |`#5F87AF`|`#8FAFD7`|
| 7 | White |`#6C6C6C`|`#FFFFFF`|
102
-
|| Foreground color |`#BCBCBC`||
103
-
|| Background color |`#262626`||
104
-
105
78
## Enabling Apprentice.
106
79
107
80
To test Apprentice, just type this command from *normal* mode and hit `Enter`:
0 commit comments