annotate rc/vim-solarized @ 338:94d0e4826d28

Cosmetics.
author Edho Arief <edho@myconan.net>
date Wed, 21 Mar 2012 13:01:55 +0700
parents c6ad8279b076
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
315
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 " Name: Solarized vim colorscheme
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2 " Author: Ethan Schoonover <es@ethanschoonover.com>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 " URL: http://ethanschoonover.com/solarized
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 " (see this url for latest release & screenshots)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 " License: OSI approved MIT license (see end of this file)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 " Created: In the middle of the night
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 " Modified: 2011 May 05
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 " Usage "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 " ABOUT:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
14 " Solarized is a carefully designed selective contrast colorscheme with dual
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
15 " light and dark modes that runs in both GUI, 256 and 16 color modes.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
16 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
17 " See the homepage above for screenshots and details.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
18 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
19 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
20 " OPTIONS:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
22 " See the "solarized.txt" help file included with this colorscheme (in the
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
23 " "doc" subdirectory) for information on options, usage, the Toggle Background
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
24 " function and more. If you have already installed Solarized, this is available
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
25 " from the Solarized menu and command line as ":help solarized"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
26 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
27 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
28 " INSTALLATION:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
29 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
30 " Two options for installation: manual or pathogen
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
31 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
32 " MANUAL INSTALLATION OPTION:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
33 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
34 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
35 " 1. Download the solarized distribution (available on the homepage above)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
36 " and unarchive the file.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
37 " 2. Move `solarized.vim` to your `.vim/colors` directory.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
38 " 3. Move each of the files in each subdirectories to the corresponding .vim
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
39 " subdirectory (e.g. autoload/togglebg.vim goes into your .vim/autoload
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
40 " directory as .vim/autoload/togglebg.vim).
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
41 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
42 " RECOMMENDED PATHOGEN INSTALLATION OPTION:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
43 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
44 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
45 " 1. Download and install Tim Pope's Pathogen from:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
46 " https://github.com/tpope/vim-pathogen
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
47 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
48 " 2. Next, move or clone the `vim-colors-solarized` directory so that it is
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
49 " a subdirectory of the `.vim/bundle` directory.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
50 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
51 " a. **clone with git:**
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
52 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
53 " $ cd ~/.vim/bundle
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
54 " $ git clone git://github.com/altercation/vim-colors-solarized.git
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
55 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
56 " b. **or move manually into the pathogen bundle directory:**
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
57 " In the parent directory of vim-colors-solarized:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
58 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
59 " $ mv vim-colors-solarized ~/.vim/bundle/
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
60 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
61 " MODIFY VIMRC:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
62 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
63 " After either Option 1 or Option 2 above, put the following two lines in your
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
64 " .vimrc:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
65 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
66 " syntax enable
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
67 " set background=dark
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
68 " colorscheme solarized
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
69 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
70 " or, for the light background mode of Solarized:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
71 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
72 " syntax enable
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
73 " set background=light
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
74 " colorscheme solarized
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
75 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
76 " I like to have a different background in GUI and terminal modes, so I can use
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
77 " the following if-then. However, I find vim's background autodetection to be
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
78 " pretty good and, at least with MacVim, I can leave this background value
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
79 " assignment out entirely and get the same results.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
80 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
81 " if has('gui_running')
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
82 " set background=light
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
83 " else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
84 " set background=dark
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
85 " endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
86 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
87 " See the Solarized homepage at http://ethanschoonover.com/solarized for
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
88 " screenshots which will help you select either the light or dark background.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
89 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
90 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
91 " COLOR VALUES
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
92 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
93 " Download palettes and files from: http://ethanschoonover.com/solarized
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
94 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
95 " L\*a\*b values are canonical (White D65, Reference D50), other values are
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
96 " matched in sRGB space.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
97 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
98 " SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B sRGB HSB
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
99 " --------- ------- ---- ------- ----------- ---------- ----------- -----------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
100 " base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
101 " base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
102 " base01 #586e75 10/7 brgreen 240 #4e4e4e 45 -07 -07 88 110 117 194 25 46
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
103 " base00 #657b83 11/7 bryellow 241 #585858 50 -07 -07 101 123 131 195 23 51
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
104 " base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
105 " base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
106 " base2 #eee8d5 7/7 white 254 #d7d7af 92 -00 10 238 232 213 44 11 93
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
107 " base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
108 " yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
109 " orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
110 " red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
111 " magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
112 " violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
113 " blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
114 " cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
115 " green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
116 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
117 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
118 " COLORSCHEME HACKING
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
119 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
120 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
121 " Useful commands for testing colorschemes:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
122 " :source $VIMRUNTIME/syntax/hitest.vim
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
123 " :help highlight-groups
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
124 " :help cterm-colors
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
125 " :help group-name
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
126 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
127 " Useful links for developing colorschemes:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
128 " http://www.vim.org/scripts/script.php?script_id=2937
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
129 " http://vimcasts.org/episodes/creating-colorschemes-for-vim/
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
130 " http://www.frexx.de/xterm-256-notes/"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
131 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
132 " }}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
133 " Environment Specific Overrides "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
134 " Allow or disallow certain features based on current terminal emulator or
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
135 " environment.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
136
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
137 " Terminals that support italics
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
138 let s:terms_italic=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
139 \"rxvt",
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
140 \"gnome-terminal"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
141 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
142 " For reference only, terminals are known to be incomptible.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
143 " Terminals that are in neither list need to be tested.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
144 let s:terms_noitalic=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
145 \"iTerm.app",
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
146 \"Apple_Terminal"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
147 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
148 if has("gui_running")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
149 let s:terminal_italic=1 " TODO: could refactor to not require this at all
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
150 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
151 let s:terminal_italic=0 " terminals will be guilty until proven compatible
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
152 for term in s:terms_italic
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
153 if $TERM_PROGRAM =~ term
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
154 let s:terminal_italic=1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
155 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
156 endfor
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
157 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
158
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
159 " }}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
160 " Default option values"{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
161 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
162 " s:options_list is used to autogenerate a list of all non-default options
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
163 " using "call SolarizedOptions()" or with the "Generate .vimrc commands"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
164 " Solarized menu option. See the "Menus" section below for the function itself.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
165 let s:options_list=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
166 \'" this block of commands has been autogenerated by solarized.vim and',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
167 \'" includes the current, non-default Solarized option values.',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
168 \'" To use, place these commands in your .vimrc file (replacing any',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
169 \'" existing colorscheme commands). See also ":help solarized"',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
170 \'',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
171 \'" ------------------------------------------------------------------',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
172 \'" Solarized Colorscheme Config',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
173 \'" ------------------------------------------------------------------',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
174 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
175 let s:colorscheme_list=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
176 \'syntax enable',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
177 \'set background='.&background,
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
178 \'colorscheme solarized',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
179 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
180 let s:defaults_list=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
181 \'" ------------------------------------------------------------------',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
182 \'',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
183 \'" The following items are available options, but do not need to be',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
184 \'" included in your .vimrc as they are currently set to their defaults.',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
185 \''
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
186 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
187 let s:lazycat_list=[
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
188 \'" lazy method of appending this onto your .vimrc ":w! >> ~/.vimrc"',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
189 \'" ------------------------------------------------------------------',
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
190 \]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
191
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
192 function! s:SetOption(name,default)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
193 if type(a:default) == type(0)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
194 let l:wrap=''
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
195 let l:ewrap=''
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
196 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
197 let l:wrap='"'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
198 let l:ewrap='\"'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
199 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
200 if !exists("g:solarized_".a:name) || g:solarized_{a:name}==a:default
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
201 exe 'let g:solarized_'.a:name.'='.l:wrap.a:default.l:wrap.'"'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
202 exe 'call add(s:defaults_list, "\" let g:solarized_'.a:name.'='.l:ewrap.g:solarized_{a:name}.l:ewrap.'")'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
203 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
204 exe 'call add(s:options_list, "let g:solarized_'.a:name.'='.l:ewrap.g:solarized_{a:name}.l:ewrap.' \"default value is '.a:default.'")'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
205 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
206 endfunction
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
207
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
208 if ($TERM_PROGRAM ==? "apple_terminal" && &t_Co < 256)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
209 let s:solarized_termtrans_default = 1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
210 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
211 let s:solarized_termtrans_default = 0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
212 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
213 call s:SetOption("termtrans",s:solarized_termtrans_default)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
214 call s:SetOption("degrade",0)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
215 call s:SetOption("bold",1)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
216 call s:SetOption("underline",1)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
217 call s:SetOption("italic",1) " note that we need to override this later if the terminal doesn't support
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
218 call s:SetOption("termcolors",16)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
219 call s:SetOption("contrast","normal")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
220 call s:SetOption("visibility","normal")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
221 call s:SetOption("diffmode","normal")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
222 call s:SetOption("hitrail",0)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
223 call s:SetOption("menu",1)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
224
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
225 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
226 " Colorscheme initialization "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
227 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
228 hi clear
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
229 if exists("syntax_on")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
230 syntax reset
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
231 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
232 let colors_name = "solarized"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
233
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
234 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
235 " GUI & CSApprox hexadecimal palettes"{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
236 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
237 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
238 " Set both gui and terminal color values in separate conditional statements
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
239 " Due to possibility that CSApprox is running (though I suppose we could just
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
240 " leave the hex values out entirely in that case and include only cterm colors)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
241 " We also check to see if user has set solarized (force use of the
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
242 " neutral gray monotone palette component)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
243 if (has("gui_running") && g:solarized_degrade == 0)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
244 let s:vmode = "gui"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
245 let s:base03 = "#002b36"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
246 let s:base02 = "#073642"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
247 let s:base01 = "#586e75"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
248 let s:base00 = "#657b83"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
249 let s:base0 = "#839496"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
250 let s:base1 = "#93a1a1"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
251 let s:base2 = "#eee8d5"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
252 let s:base3 = "#fdf6e3"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
253 let s:yellow = "#b58900"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
254 let s:orange = "#cb4b16"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
255 let s:red = "#dc322f"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
256 let s:magenta = "#d33682"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
257 let s:violet = "#6c71c4"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
258 let s:blue = "#268bd2"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
259 let s:cyan = "#2aa198"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
260 "let s:green = "#859900" "original
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
261 let s:green = "#719e07" "experimental
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
262 elseif (has("gui_running") && g:solarized_degrade == 1)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
263 " These colors are identical to the 256 color mode. They may be viewed
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
264 " while in gui mode via "let g:solarized_degrade=1", though this is not
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
265 " recommened and is for testing only.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
266 let s:vmode = "gui"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
267 let s:base03 = "#1c1c1c"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
268 let s:base02 = "#262626"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
269 let s:base01 = "#4e4e4e"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
270 let s:base00 = "#585858"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
271 let s:base0 = "#808080"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
272 let s:base1 = "#8a8a8a"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
273 let s:base2 = "#d7d7af"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
274 let s:base3 = "#ffffd7"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
275 let s:yellow = "#af8700"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
276 let s:orange = "#d75f00"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
277 let s:red = "#af0000"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
278 let s:magenta = "#af005f"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
279 let s:violet = "#5f5faf"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
280 let s:blue = "#0087ff"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
281 let s:cyan = "#00afaf"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
282 let s:green = "#5f8700"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
283 elseif g:solarized_termcolors != 256 && &t_Co >= 16
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
284 let s:vmode = "cterm"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
285 let s:base03 = "8"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
286 let s:base02 = "0"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
287 let s:base01 = "10"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
288 let s:base00 = "11"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
289 let s:base0 = "12"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
290 let s:base1 = "14"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
291 let s:base2 = "7"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
292 let s:base3 = "15"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
293 let s:yellow = "3"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
294 let s:orange = "9"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
295 let s:red = "1"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
296 let s:magenta = "5"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
297 let s:violet = "13"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
298 let s:blue = "4"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
299 let s:cyan = "6"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
300 let s:green = "2"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
301 elseif g:solarized_termcolors == 256
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
302 let s:vmode = "cterm"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
303 let s:base03 = "234"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
304 let s:base02 = "235"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
305 let s:base01 = "239"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
306 let s:base00 = "240"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
307 let s:base0 = "244"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
308 let s:base1 = "245"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
309 let s:base2 = "187"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
310 let s:base3 = "230"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
311 let s:yellow = "136"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
312 let s:orange = "166"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
313 let s:red = "124"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
314 let s:magenta = "125"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
315 let s:violet = "61"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
316 let s:blue = "33"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
317 let s:cyan = "37"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
318 let s:green = "64"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
319 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
320 let s:vmode = "cterm"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
321 let s:bright = "* term=bold cterm=bold"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
322 " let s:base03 = "0".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
323 " let s:base02 = "0"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
324 " let s:base01 = "2".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
325 " let s:base00 = "3".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
326 " let s:base0 = "4".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
327 " let s:base1 = "6".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
328 " let s:base2 = "7"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
329 " let s:base3 = "7".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
330 " let s:yellow = "3"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
331 " let s:orange = "1".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
332 " let s:red = "1"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
333 " let s:magenta = "5"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
334 " let s:violet = "5".s:bright
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
335 " let s:blue = "4"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
336 " let s:cyan = "6"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
337 " let s:green = "2"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
338 let s:base03 = "DarkGray" " 0*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
339 let s:base02 = "Black" " 0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
340 let s:base01 = "LightGreen" " 2*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
341 let s:base00 = "LightYellow" " 3*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
342 let s:base0 = "LightBlue" " 4*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
343 let s:base1 = "LightCyan" " 6*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
344 let s:base2 = "LightGray" " 7
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
345 let s:base3 = "White" " 7*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
346 let s:yellow = "DarkYellow" " 3
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
347 let s:orange = "LightRed" " 1*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
348 let s:red = "DarkRed" " 1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
349 let s:magenta = "DarkMagenta" " 5
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
350 let s:violet = "LightMagenta" " 5*
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
351 let s:blue = "DarkBlue" " 4
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
352 let s:cyan = "DarkCyan" " 6
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
353 let s:green = "DarkGreen" " 2
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
354
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
355 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
356 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
357 " Formatting options and null values for passthrough effect "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
358 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
359 let s:none = "NONE"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
360 let s:none = "NONE"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
361 let s:t_none = "NONE"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
362 let s:n = "NONE"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
363 let s:c = ",undercurl"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
364 let s:r = ",reverse"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
365 let s:s = ",standout"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
366 let s:ou = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
367 let s:ob = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
368 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
369 " Background value based on termtrans setting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
370 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
371 if (has("gui_running") || g:solarized_termtrans == 0)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
372 let s:back = s:base03
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
373 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
374 let s:back = "NONE"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
375 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
376 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
377 " Alternate light scheme "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
378 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
379 if &background == "light"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
380 let s:temp03 = s:base03
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
381 let s:temp02 = s:base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
382 let s:temp01 = s:base01
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
383 let s:temp00 = s:base00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
384 let s:base03 = s:base3
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
385 let s:base02 = s:base2
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
386 let s:base01 = s:base1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
387 let s:base00 = s:base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
388 let s:base0 = s:temp00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
389 let s:base1 = s:temp01
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
390 let s:base2 = s:temp02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
391 let s:base3 = s:temp03
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
392 if (s:back != "NONE")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
393 let s:back = s:base03
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
394 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
395 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
396 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
397 " Optional contrast schemes "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
398 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
399 if g:solarized_contrast == "high"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
400 let s:base01 = s:base00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
401 let s:base00 = s:base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
402 let s:base0 = s:base1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
403 let s:base1 = s:base2
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
404 let s:base2 = s:base3
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
405 let s:back = s:back
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
406 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
407 if g:solarized_contrast == "low"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
408 let s:back = s:base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
409 let s:ou = ",underline"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
410 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
411 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
412 " Overrides dependent on user specified values and environment "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
413 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
414 if (g:solarized_bold == 0 || &t_Co == 8 )
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
415 let s:b = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
416 let s:bb = ",bold"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
417 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
418 let s:b = ",bold"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
419 let s:bb = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
420 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
421
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
422 if g:solarized_underline == 0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
423 let s:u = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
424 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
425 let s:u = ",underline"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
426 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
427
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
428 if g:solarized_italic == 0 || s:terminal_italic == 0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
429 let s:i = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
430 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
431 let s:i = ",italic"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
432 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
433 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
434 " Highlighting primitives"{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
435 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
436
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
437 exe "let s:bg_none = ' ".s:vmode."bg=".s:none ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
438 exe "let s:bg_back = ' ".s:vmode."bg=".s:back ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
439 exe "let s:bg_base03 = ' ".s:vmode."bg=".s:base03 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
440 exe "let s:bg_base02 = ' ".s:vmode."bg=".s:base02 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
441 exe "let s:bg_base01 = ' ".s:vmode."bg=".s:base01 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
442 exe "let s:bg_base00 = ' ".s:vmode."bg=".s:base00 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
443 exe "let s:bg_base0 = ' ".s:vmode."bg=".s:base0 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
444 exe "let s:bg_base1 = ' ".s:vmode."bg=".s:base1 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
445 exe "let s:bg_base2 = ' ".s:vmode."bg=".s:base2 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
446 exe "let s:bg_base3 = ' ".s:vmode."bg=".s:base3 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
447 exe "let s:bg_green = ' ".s:vmode."bg=".s:green ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
448 exe "let s:bg_yellow = ' ".s:vmode."bg=".s:yellow ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
449 exe "let s:bg_orange = ' ".s:vmode."bg=".s:orange ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
450 exe "let s:bg_red = ' ".s:vmode."bg=".s:red ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
451 exe "let s:bg_magenta = ' ".s:vmode."bg=".s:magenta."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
452 exe "let s:bg_violet = ' ".s:vmode."bg=".s:violet ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
453 exe "let s:bg_blue = ' ".s:vmode."bg=".s:blue ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
454 exe "let s:bg_cyan = ' ".s:vmode."bg=".s:cyan ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
455
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
456 exe "let s:fg_none = ' ".s:vmode."fg=".s:none ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
457 exe "let s:fg_back = ' ".s:vmode."fg=".s:back ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
458 exe "let s:fg_base03 = ' ".s:vmode."fg=".s:base03 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
459 exe "let s:fg_base02 = ' ".s:vmode."fg=".s:base02 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
460 exe "let s:fg_base01 = ' ".s:vmode."fg=".s:base01 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
461 exe "let s:fg_base00 = ' ".s:vmode."fg=".s:base00 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
462 exe "let s:fg_base0 = ' ".s:vmode."fg=".s:base0 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
463 exe "let s:fg_base1 = ' ".s:vmode."fg=".s:base1 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
464 exe "let s:fg_base2 = ' ".s:vmode."fg=".s:base2 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
465 exe "let s:fg_base3 = ' ".s:vmode."fg=".s:base3 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
466 exe "let s:fg_green = ' ".s:vmode."fg=".s:green ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
467 exe "let s:fg_yellow = ' ".s:vmode."fg=".s:yellow ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
468 exe "let s:fg_orange = ' ".s:vmode."fg=".s:orange ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
469 exe "let s:fg_red = ' ".s:vmode."fg=".s:red ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
470 exe "let s:fg_magenta = ' ".s:vmode."fg=".s:magenta."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
471 exe "let s:fg_violet = ' ".s:vmode."fg=".s:violet ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
472 exe "let s:fg_blue = ' ".s:vmode."fg=".s:blue ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
473 exe "let s:fg_cyan = ' ".s:vmode."fg=".s:cyan ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
474
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
475 exe "let s:fmt_none = ' ".s:vmode."=NONE". " term=NONE". "'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
476 exe "let s:fmt_bold = ' ".s:vmode."=NONE".s:b. " term=NONE".s:b."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
477 exe "let s:fmt_bldi = ' ".s:vmode."=NONE".s:b. " term=NONE".s:b."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
478 exe "let s:fmt_undr = ' ".s:vmode."=NONE".s:u. " term=NONE".s:u."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
479 exe "let s:fmt_undb = ' ".s:vmode."=NONE".s:u.s:b. " term=NONE".s:u.s:b."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
480 exe "let s:fmt_undi = ' ".s:vmode."=NONE".s:u. " term=NONE".s:u."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
481 exe "let s:fmt_uopt = ' ".s:vmode."=NONE".s:ou. " term=NONE".s:ou."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
482 exe "let s:fmt_curl = ' ".s:vmode."=NONE".s:c. " term=NONE".s:c."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
483 exe "let s:fmt_ital = ' ".s:vmode."=NONE".s:i. " term=NONE".s:i."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
484 exe "let s:fmt_stnd = ' ".s:vmode."=NONE".s:s. " term=NONE".s:s."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
485 exe "let s:fmt_revr = ' ".s:vmode."=NONE".s:r. " term=NONE".s:r."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
486 exe "let s:fmt_revb = ' ".s:vmode."=NONE".s:r.s:b. " term=NONE".s:r.s:b."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
487 " revbb (reverse bold for bright colors) is only set to actual bold in low
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
488 " color terminals (t_co=8, such as OS X Terminal.app) and should only be used
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
489 " with colors 8-15.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
490 exe "let s:fmt_revbb = ' ".s:vmode."=NONE".s:r.s:bb. " term=NONE".s:r.s:bb."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
491 exe "let s:fmt_revbbu = ' ".s:vmode."=NONE".s:r.s:bb.s:u." term=NONE".s:r.s:bb.s:u."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
492
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
493 if has("gui_running")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
494 exe "let s:sp_none = ' guisp=".s:none ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
495 exe "let s:sp_back = ' guisp=".s:back ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
496 exe "let s:sp_base03 = ' guisp=".s:base03 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
497 exe "let s:sp_base02 = ' guisp=".s:base02 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
498 exe "let s:sp_base01 = ' guisp=".s:base01 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
499 exe "let s:sp_base00 = ' guisp=".s:base00 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
500 exe "let s:sp_base0 = ' guisp=".s:base0 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
501 exe "let s:sp_base1 = ' guisp=".s:base1 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
502 exe "let s:sp_base2 = ' guisp=".s:base2 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
503 exe "let s:sp_base3 = ' guisp=".s:base3 ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
504 exe "let s:sp_green = ' guisp=".s:green ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
505 exe "let s:sp_yellow = ' guisp=".s:yellow ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
506 exe "let s:sp_orange = ' guisp=".s:orange ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
507 exe "let s:sp_red = ' guisp=".s:red ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
508 exe "let s:sp_magenta = ' guisp=".s:magenta."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
509 exe "let s:sp_violet = ' guisp=".s:violet ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
510 exe "let s:sp_blue = ' guisp=".s:blue ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
511 exe "let s:sp_cyan = ' guisp=".s:cyan ."'"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
512 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
513 let s:sp_none = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
514 let s:sp_back = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
515 let s:sp_base03 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
516 let s:sp_base02 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
517 let s:sp_base01 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
518 let s:sp_base00 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
519 let s:sp_base0 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
520 let s:sp_base1 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
521 let s:sp_base2 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
522 let s:sp_base3 = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
523 let s:sp_green = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
524 let s:sp_yellow = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
525 let s:sp_orange = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
526 let s:sp_red = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
527 let s:sp_magenta = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
528 let s:sp_violet = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
529 let s:sp_blue = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
530 let s:sp_cyan = ""
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
531 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
532
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
533 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
534 " Basic highlighting"{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
535 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
536 " note that link syntax to avoid duplicate configuration doesn't work with the
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
537 " exe compiled formats
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
538
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
539 exe "hi! Normal" .s:fmt_none .s:fg_base0 .s:bg_back
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
540
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
541 exe "hi! Comment" .s:fmt_ital .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
542 " *Comment any comment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
543
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
544 exe "hi! Constant" .s:fmt_none .s:fg_cyan .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
545 " *Constant any constant
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
546 " String a string constant: "this is a string"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
547 " Character a character constant: 'c', '\n'
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
548 " Number a number constant: 234, 0xff
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
549 " Boolean a boolean constant: TRUE, false
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
550 " Float a floating point constant: 2.3e10
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
551
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
552 exe "hi! Identifier" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
553 " *Identifier any variable name
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
554 " Function function name (also: methods for classes)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
555 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
556 exe "hi! Statement" .s:fmt_none .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
557 " *Statement any statement
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
558 " Conditional if, then, else, endif, switch, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
559 " Repeat for, do, while, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
560 " Label case, default, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
561 " Operator "sizeof", "+", "*", etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
562 " Keyword any other keyword
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
563 " Exception try, catch, throw
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
564
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
565 exe "hi! PreProc" .s:fmt_none .s:fg_orange .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
566 " *PreProc generic Preprocessor
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
567 " Include preprocessor #include
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
568 " Define preprocessor #define
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
569 " Macro same as Define
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
570 " PreCondit preprocessor #if, #else, #endif, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
571
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
572 exe "hi! Type" .s:fmt_none .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
573 " *Type int, long, char, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
574 " StorageClass static, register, volatile, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
575 " Structure struct, union, enum, etc.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
576 " Typedef A typedef
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
577
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
578 exe "hi! Special" .s:fmt_none .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
579 " *Special any special symbol
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
580 " SpecialChar special character in a constant
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
581 " Tag you can use CTRL-] on this
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
582 " Delimiter character that needs attention
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
583 " SpecialComment special things inside a comment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
584 " Debug debugging statements
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
585
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
586 exe "hi! Underlined" .s:fmt_none .s:fg_violet .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
587 " *Underlined text that stands out, HTML links
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
588
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
589 exe "hi! Ignore" .s:fmt_none .s:fg_none .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
590 " *Ignore left blank, hidden |hl-Ignore|
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
591
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
592 exe "hi! Error" .s:fmt_bold .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
593 " *Error any erroneous construct
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
594
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
595 exe "hi! Todo" .s:fmt_bold .s:fg_magenta.s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
596 " *Todo anything that needs extra attention; mostly the
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
597 " keywords TODO FIXME and XXX
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
598 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
599 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
600 " Extended highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
601 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
602 if (g:solarized_visibility=="high")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
603 exe "hi! SpecialKey" .s:fmt_revr .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
604 exe "hi! NonText" .s:fmt_bold .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
605 elseif (g:solarized_visibility=="low")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
606 exe "hi! SpecialKey" .s:fmt_bold .s:fg_base02 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
607 exe "hi! NonText" .s:fmt_bold .s:fg_base02 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
608 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
609 exe "hi! SpecialKey" .s:fmt_bold .s:fg_base00 .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
610 exe "hi! NonText" .s:fmt_bold .s:fg_base00 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
611 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
612 exe "hi! StatusLine" .s:fmt_none .s:fg_base1 .s:bg_base02 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
613 exe "hi! StatusLineNC" .s:fmt_none .s:fg_base00 .s:bg_base02 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
614 exe "hi! Visual" .s:fmt_none .s:fg_base01 .s:bg_base03 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
615 exe "hi! Directory" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
616 exe "hi! ErrorMsg" .s:fmt_revr .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
617 exe "hi! IncSearch" .s:fmt_stnd .s:fg_orange .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
618 exe "hi! Search" .s:fmt_revr .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
619 exe "hi! MoreMsg" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
620 exe "hi! ModeMsg" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
621 exe "hi! LineNr" .s:fmt_none .s:fg_base01 .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
622 exe "hi! Question" .s:fmt_bold .s:fg_cyan .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
623 if ( has("gui_running") || &t_Co > 8 )
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
624 exe "hi! VertSplit" .s:fmt_none .s:fg_base00 .s:bg_base00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
625 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
626 exe "hi! VertSplit" .s:fmt_revbb .s:fg_base00 .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
627 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
628 exe "hi! Title" .s:fmt_bold .s:fg_orange .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
629 exe "hi! VisualNOS" .s:fmt_stnd .s:fg_none .s:bg_base02 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
630 exe "hi! WarningMsg" .s:fmt_bold .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
631 exe "hi! WildMenu" .s:fmt_none .s:fg_base2 .s:bg_base02 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
632 exe "hi! Folded" .s:fmt_undb .s:fg_base0 .s:bg_base02 .s:sp_base03
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
633 exe "hi! FoldColumn" .s:fmt_none .s:fg_base0 .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
634 if (g:solarized_diffmode=="high")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
635 exe "hi! DiffAdd" .s:fmt_revr .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
636 exe "hi! DiffChange" .s:fmt_revr .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
637 exe "hi! DiffDelete" .s:fmt_revr .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
638 exe "hi! DiffText" .s:fmt_revr .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
639 elseif (g:solarized_diffmode=="low")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
640 exe "hi! DiffAdd" .s:fmt_undr .s:fg_green .s:bg_none .s:sp_green
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
641 exe "hi! DiffChange" .s:fmt_undr .s:fg_yellow .s:bg_none .s:sp_yellow
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
642 exe "hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
643 exe "hi! DiffText" .s:fmt_undr .s:fg_blue .s:bg_none .s:sp_blue
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
644 else " normal
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
645 if has("gui_running")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
646 exe "hi! DiffAdd" .s:fmt_bold .s:fg_green .s:bg_base02 .s:sp_green
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
647 exe "hi! DiffChange" .s:fmt_bold .s:fg_yellow .s:bg_base02 .s:sp_yellow
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
648 exe "hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
649 exe "hi! DiffText" .s:fmt_bold .s:fg_blue .s:bg_base02 .s:sp_blue
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
650 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
651 exe "hi! DiffAdd" .s:fmt_none .s:fg_green .s:bg_base02 .s:sp_green
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
652 exe "hi! DiffChange" .s:fmt_none .s:fg_yellow .s:bg_base02 .s:sp_yellow
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
653 exe "hi! DiffDelete" .s:fmt_none .s:fg_red .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
654 exe "hi! DiffText" .s:fmt_none .s:fg_blue .s:bg_base02 .s:sp_blue
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
655 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
656 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
657 exe "hi! SignColumn" .s:fmt_none .s:fg_base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
658 exe "hi! Conceal" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
659 exe "hi! SpellBad" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_red
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
660 exe "hi! SpellCap" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_violet
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
661 exe "hi! SpellRare" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_cyan
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
662 exe "hi! SpellLocal" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_yellow
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
663 exe "hi! Pmenu" .s:fmt_none .s:fg_base0 .s:bg_base02 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
664 exe "hi! PmenuSel" .s:fmt_none .s:fg_base01 .s:bg_base2 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
665 exe "hi! PmenuSbar" .s:fmt_none .s:fg_base2 .s:bg_base0 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
666 exe "hi! PmenuThumb" .s:fmt_none .s:fg_base0 .s:bg_base03 .s:fmt_revbb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
667 exe "hi! TabLine" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
668 exe "hi! TabLineFill" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
669 exe "hi! TabLineSel" .s:fmt_undr .s:fg_base01 .s:bg_base2 .s:sp_base0 .s:fmt_revbbu
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
670 exe "hi! CursorColumn" .s:fmt_none .s:fg_none .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
671 exe "hi! CursorLine" .s:fmt_uopt .s:fg_none .s:bg_base02 .s:sp_base1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
672 exe "hi! ColorColumn" .s:fmt_none .s:fg_none .s:bg_base02
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
673 exe "hi! Cursor" .s:fmt_none .s:fg_base03 .s:bg_base0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
674 hi! link lCursor Cursor
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
675 exe "hi! MatchParen" .s:fmt_bold .s:fg_red .s:bg_base01
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
676
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
677 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
678 " vim syntax highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
679 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
680 "exe "hi! vimLineComment" . s:fg_base01 .s:bg_none .s:fmt_ital
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
681 "hi! link vimComment Comment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
682 "hi! link vimLineComment Comment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
683 hi! link vimVar Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
684 hi! link vimFunc Function
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
685 hi! link vimUserFunc Function
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
686 hi! link helpSpecial Special
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
687 hi! link vimSet Normal
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
688 hi! link vimSetEqual Normal
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
689 exe "hi! vimCommentString" .s:fmt_none .s:fg_violet .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
690 exe "hi! vimCommand" .s:fmt_none .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
691 exe "hi! vimCmdSep" .s:fmt_bold .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
692 exe "hi! helpExample" .s:fmt_none .s:fg_base1 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
693 exe "hi! helpOption" .s:fmt_none .s:fg_cyan .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
694 exe "hi! helpNote" .s:fmt_none .s:fg_magenta.s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
695 exe "hi! helpVim" .s:fmt_none .s:fg_magenta.s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
696 exe "hi! helpHyperTextJump" .s:fmt_undr .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
697 exe "hi! helpHyperTextEntry".s:fmt_none .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
698 exe "hi! vimIsCommand" .s:fmt_none .s:fg_base00 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
699 exe "hi! vimSynMtchOpt" .s:fmt_none .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
700 exe "hi! vimSynType" .s:fmt_none .s:fg_cyan .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
701 exe "hi! vimHiLink" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
702 exe "hi! vimHiGroup" .s:fmt_none .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
703 exe "hi! vimGroup" .s:fmt_undb .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
704 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
705 " diff highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
706 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
707 hi! link diffAdded Statement
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
708 hi! link diffLine Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
709 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
710 " git & gitcommit highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
711 "git
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
712 "exe "hi! gitDateHeader"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
713 "exe "hi! gitIdentityHeader"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
714 "exe "hi! gitIdentityKeyword"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
715 "exe "hi! gitNotesHeader"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
716 "exe "hi! gitReflogHeader"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
717 "exe "hi! gitKeyword"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
718 "exe "hi! gitIdentity"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
719 "exe "hi! gitEmailDelimiter"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
720 "exe "hi! gitEmail"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
721 "exe "hi! gitDate"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
722 "exe "hi! gitMode"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
723 "exe "hi! gitHashAbbrev"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
724 "exe "hi! gitHash"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
725 "exe "hi! gitReflogMiddle"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
726 "exe "hi! gitReference"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
727 "exe "hi! gitStage"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
728 "exe "hi! gitType"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
729 "exe "hi! gitDiffAdded"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
730 "exe "hi! gitDiffRemoved"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
731 "gitcommit
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
732 "exe "hi! gitcommitSummary"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
733 exe "hi! gitcommitComment" .s:fmt_ital .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
734 hi! link gitcommitUntracked gitcommitComment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
735 hi! link gitcommitDiscarded gitcommitComment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
736 hi! link gitcommitSelected gitcommitComment
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
737 exe "hi! gitcommitUnmerged" .s:fmt_bold .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
738 exe "hi! gitcommitOnBranch" .s:fmt_bold .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
739 exe "hi! gitcommitBranch" .s:fmt_bold .s:fg_magenta .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
740 hi! link gitcommitNoBranch gitcommitBranch
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
741 exe "hi! gitcommitDiscardedType".s:fmt_none .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
742 exe "hi! gitcommitSelectedType" .s:fmt_none .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
743 "exe "hi! gitcommitUnmergedType"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
744 "exe "hi! gitcommitType"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
745 "exe "hi! gitcommitNoChanges"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
746 "exe "hi! gitcommitHeader"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
747 exe "hi! gitcommitHeader" .s:fmt_none .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
748 exe "hi! gitcommitUntrackedFile".s:fmt_bold .s:fg_cyan .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
749 exe "hi! gitcommitDiscardedFile".s:fmt_bold .s:fg_red .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
750 exe "hi! gitcommitSelectedFile" .s:fmt_bold .s:fg_green .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
751 exe "hi! gitcommitUnmergedFile" .s:fmt_bold .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
752 exe "hi! gitcommitFile" .s:fmt_bold .s:fg_base0 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
753 hi! link gitcommitDiscardedArrow gitcommitDiscardedFile
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
754 hi! link gitcommitSelectedArrow gitcommitSelectedFile
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
755 hi! link gitcommitUnmergedArrow gitcommitUnmergedFile
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
756 "exe "hi! gitcommitArrow"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
757 "exe "hi! gitcommitOverflow"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
758 "exe "hi! gitcommitBlank"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
759 " }}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
760 " html highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
761 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
762 exe "hi! htmlTag" .s:fmt_none .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
763 exe "hi! htmlEndTag" .s:fmt_none .s:fg_base01 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
764 exe "hi! htmlTagN" .s:fmt_bold .s:fg_base1 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
765 exe "hi! htmlTagName" .s:fmt_bold .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
766 exe "hi! htmlSpecialTagName".s:fmt_ital .s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
767 exe "hi! htmlArg" .s:fmt_none .s:fg_base00 .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
768 exe "hi! javaScript" .s:fmt_none .s:fg_yellow .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
769 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
770 " perl highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
771 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
772 exe "hi! perlHereDoc" . s:fg_base1 .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
773 exe "hi! perlVarPlain" . s:fg_yellow .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
774 exe "hi! perlStatementFileDesc". s:fg_cyan.s:bg_back.s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
775
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
776 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
777 " tex highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
778 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
779 exe "hi! texStatement" . s:fg_cyan .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
780 exe "hi! texMathZoneX" . s:fg_yellow .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
781 exe "hi! texMathMatcher" . s:fg_yellow .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
782 exe "hi! texMathMatcher" . s:fg_yellow .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
783 exe "hi! texRefLabel" . s:fg_yellow .s:bg_back .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
784 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
785 " ruby highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
786 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
787 exe "hi! rubyDefine" . s:fg_base1 .s:bg_back .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
788 "rubyInclude
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
789 "rubySharpBang
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
790 "rubyAccess
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
791 "rubyPredefinedVariable
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
792 "rubyBoolean
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
793 "rubyClassVariable
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
794 "rubyBeginEnd
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
795 "rubyRepeatModifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
796 "hi! link rubyArrayDelimiter Special " [ , , ]
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
797 "rubyCurlyBlock { , , }
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
798
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
799 "hi! link rubyClass Keyword
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
800 "hi! link rubyModule Keyword
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
801 "hi! link rubyKeyword Keyword
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
802 "hi! link rubyOperator Operator
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
803 "hi! link rubyIdentifier Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
804 "hi! link rubyInstanceVariable Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
805 "hi! link rubyGlobalVariable Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
806 "hi! link rubyClassVariable Identifier
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
807 "hi! link rubyConstant Type
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
808 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
809 " haskell syntax highlighting"{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
810 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
811 " For use with syntax/haskell.vim : Haskell Syntax File
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
812 " http://www.vim.org/scripts/script.php?script_id=3034
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
813 " See also Steffen Siering's github repository:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
814 " http://github.com/urso/dotrc/blob/master/vim/syntax/haskell.vim
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
815 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
816 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
817 " Treat True and False specially, see the plugin referenced above
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
818 let hs_highlight_boolean=1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
819 " highlight delims, see the plugin referenced above
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
820 let hs_highlight_delimiters=1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
821
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
822 exe "hi! cPreCondit". s:fg_orange.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
823
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
824 exe "hi! VarId" . s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
825 exe "hi! ConId" . s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
826 exe "hi! hsImport" . s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
827 exe "hi! hsString" . s:fg_base00 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
828
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
829 exe "hi! hsStructure" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
830 exe "hi! hs_hlFunctionName" . s:fg_blue .s:bg_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
831 exe "hi! hsStatement" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
832 exe "hi! hsImportLabel" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
833 exe "hi! hs_OpFunctionName" . s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
834 exe "hi! hs_DeclareFunction" . s:fg_orange .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
835 exe "hi! hsVarSym" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
836 exe "hi! hsType" . s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
837 exe "hi! hsTypedef" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
838 exe "hi! hsModuleName" . s:fg_green .s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
839 exe "hi! hsModuleStartLabel" . s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
840 hi! link hsImportParams Delimiter
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
841 hi! link hsDelimTypeExport Delimiter
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
842 hi! link hsModuleStartLabel hsStructure
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
843 hi! link hsModuleWhereLabel hsModuleStartLabel
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
844
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
845 " following is for the haskell-conceal plugin
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
846 " the first two items don't have an impact, but better safe
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
847 exe "hi! hsNiceOperator" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
848 exe "hi! hsniceoperator" . s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
849
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
850 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
851 " pandoc markdown syntax highlighting "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
852 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
853
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
854 "PandocHiLink pandocNormalBlock
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
855 exe "hi! pandocTitleBlock" .s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
856 exe "hi! pandocTitleBlockTitle" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
857 exe "hi! pandocTitleComment" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
858 exe "hi! pandocComment" .s:fg_base01 .s:bg_none .s:fmt_ital
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
859 exe "hi! pandocVerbatimBlock" .s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
860 hi! link pandocVerbatimBlockDeep pandocVerbatimBlock
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
861 hi! link pandocCodeBlock pandocVerbatimBlock
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
862 hi! link pandocCodeBlockDelim pandocVerbatimBlock
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
863 exe "hi! pandocBlockQuote" .s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
864 exe "hi! pandocBlockQuoteLeader1" .s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
865 exe "hi! pandocBlockQuoteLeader2" .s:fg_cyan .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
866 exe "hi! pandocBlockQuoteLeader3" .s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
867 exe "hi! pandocBlockQuoteLeader4" .s:fg_red .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
868 exe "hi! pandocBlockQuoteLeader5" .s:fg_base0 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
869 exe "hi! pandocBlockQuoteLeader6" .s:fg_base01 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
870 exe "hi! pandocListMarker" .s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
871 exe "hi! pandocListReference" .s:fg_magenta.s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
872
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
873 " Definitions
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
874 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
875 let s:fg_pdef = s:fg_violet
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
876 exe "hi! pandocDefinitionBlock" .s:fg_pdef .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
877 exe "hi! pandocDefinitionTerm" .s:fg_pdef .s:bg_none .s:fmt_stnd
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
878 exe "hi! pandocDefinitionIndctr" .s:fg_pdef .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
879 exe "hi! pandocEmphasisDefinition" .s:fg_pdef .s:bg_none .s:fmt_ital
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
880 exe "hi! pandocEmphasisNestedDefinition" .s:fg_pdef .s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
881 exe "hi! pandocStrongEmphasisDefinition" .s:fg_pdef .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
882 exe "hi! pandocStrongEmphasisNestedDefinition" .s:fg_pdef.s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
883 exe "hi! pandocStrongEmphasisEmphasisDefinition" .s:fg_pdef.s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
884 exe "hi! pandocStrikeoutDefinition" .s:fg_pdef .s:bg_none .s:fmt_revr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
885 exe "hi! pandocVerbatimInlineDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
886 exe "hi! pandocSuperscriptDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
887 exe "hi! pandocSubscriptDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
888
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
889 " Tables
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
890 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
891 let s:fg_ptable = s:fg_blue
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
892 exe "hi! pandocTable" .s:fg_ptable.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
893 exe "hi! pandocTableStructure" .s:fg_ptable.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
894 hi! link pandocTableStructureTop pandocTableStructre
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
895 hi! link pandocTableStructureEnd pandocTableStructre
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
896 exe "hi! pandocTableZebraLight" .s:fg_ptable.s:bg_base03.s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
897 exe "hi! pandocTableZebraDark" .s:fg_ptable.s:bg_base02.s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
898 exe "hi! pandocEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_ital
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
899 exe "hi! pandocEmphasisNestedTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
900 exe "hi! pandocStrongEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
901 exe "hi! pandocStrongEmphasisNestedTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
902 exe "hi! pandocStrongEmphasisEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
903 exe "hi! pandocStrikeoutTable" .s:fg_ptable.s:bg_none .s:fmt_revr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
904 exe "hi! pandocVerbatimInlineTable" .s:fg_ptable.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
905 exe "hi! pandocSuperscriptTable" .s:fg_ptable.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
906 exe "hi! pandocSubscriptTable" .s:fg_ptable.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
907
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
908 " Headings
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
909 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
910 let s:fg_phead = s:fg_orange
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
911 exe "hi! pandocHeading" .s:fg_phead .s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
912 exe "hi! pandocHeadingMarker" .s:fg_yellow.s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
913 exe "hi! pandocEmphasisHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
914 exe "hi! pandocEmphasisNestedHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
915 exe "hi! pandocStrongEmphasisHeading" .s:fg_phead .s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
916 exe "hi! pandocStrongEmphasisNestedHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
917 exe "hi! pandocStrongEmphasisEmphasisHeading".s:fg_phead .s:bg_none.s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
918 exe "hi! pandocStrikeoutHeading" .s:fg_phead .s:bg_none.s:fmt_revr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
919 exe "hi! pandocVerbatimInlineHeading" .s:fg_phead .s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
920 exe "hi! pandocSuperscriptHeading" .s:fg_phead .s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
921 exe "hi! pandocSubscriptHeading" .s:fg_phead .s:bg_none.s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
922
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
923 " Links
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
924 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
925 exe "hi! pandocLinkDelim" .s:fg_base01 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
926 exe "hi! pandocLinkLabel" .s:fg_blue .s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
927 exe "hi! pandocLinkText" .s:fg_blue .s:bg_none .s:fmt_undb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
928 exe "hi! pandocLinkURL" .s:fg_base00 .s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
929 exe "hi! pandocLinkTitle" .s:fg_base00 .s:bg_none .s:fmt_undi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
930 exe "hi! pandocLinkTitleDelim" .s:fg_base01 .s:bg_none .s:fmt_undi .s:sp_base00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
931 exe "hi! pandocLinkDefinition" .s:fg_cyan .s:bg_none .s:fmt_undr .s:sp_base00
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
932 exe "hi! pandocLinkDefinitionID" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
933 exe "hi! pandocImageCaption" .s:fg_violet .s:bg_none .s:fmt_undb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
934 exe "hi! pandocFootnoteLink" .s:fg_green .s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
935 exe "hi! pandocFootnoteDefLink" .s:fg_green .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
936 exe "hi! pandocFootnoteInline" .s:fg_green .s:bg_none .s:fmt_undb
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
937 exe "hi! pandocFootnote" .s:fg_green .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
938 exe "hi! pandocCitationDelim" .s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
939 exe "hi! pandocCitation" .s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
940 exe "hi! pandocCitationID" .s:fg_magenta.s:bg_none .s:fmt_undr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
941 exe "hi! pandocCitationRef" .s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
942
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
943 " Main Styles
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
944 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
945 exe "hi! pandocStyleDelim" .s:fg_base01 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
946 exe "hi! pandocEmphasis" .s:fg_base0 .s:bg_none .s:fmt_ital
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
947 exe "hi! pandocEmphasisNested" .s:fg_base0 .s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
948 exe "hi! pandocStrongEmphasis" .s:fg_base0 .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
949 exe "hi! pandocStrongEmphasisNested" .s:fg_base0 .s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
950 exe "hi! pandocStrongEmphasisEmphasis" .s:fg_base0 .s:bg_none .s:fmt_bldi
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
951 exe "hi! pandocStrikeout" .s:fg_base01 .s:bg_none .s:fmt_revr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
952 exe "hi! pandocVerbatimInline" .s:fg_yellow .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
953 exe "hi! pandocSuperscript" .s:fg_violet .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
954 exe "hi! pandocSubscript" .s:fg_violet .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
955
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
956 exe "hi! pandocRule" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
957 exe "hi! pandocRuleLine" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
958 exe "hi! pandocEscapePair" .s:fg_red .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
959 exe "hi! pandocCitationRef" .s:fg_magenta.s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
960 exe "hi! pandocNonBreakingSpace" . s:fg_red .s:bg_none .s:fmt_revr
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
961 hi! link pandocEscapedCharacter pandocEscapePair
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
962 hi! link pandocLineBreak pandocEscapePair
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
963
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
964 " Embedded Code
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
965 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
966 exe "hi! pandocMetadataDelim" .s:fg_base01 .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
967 exe "hi! pandocMetadata" .s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
968 exe "hi! pandocMetadataKey" .s:fg_blue .s:bg_none .s:fmt_none
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
969 exe "hi! pandocMetadata" .s:fg_blue .s:bg_none .s:fmt_bold
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
970 hi! link pandocMetadataTitle pandocMetadata
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
971
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
972 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
973 " Utility autocommand "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
974 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
975 " In cases where Solarized is initialized inside a terminal vim session and
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
976 " then transferred to a gui session via the command `:gui`, the gui vim process
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
977 " does not re-read the colorscheme (or .vimrc for that matter) so any `has_gui`
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
978 " related code that sets gui specific values isn't executed.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
979 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
980 " Currently, Solarized sets only the cterm or gui values for the colorscheme
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
981 " depending on gui or terminal mode. It's possible that, if the following
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
982 " autocommand method is deemed excessively poor form, that approach will be
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
983 " used again and the autocommand below will be dropped.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
984 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
985 " However it seems relatively benign in this case to include the autocommand
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
986 " here. It fires only in cases where vim is transferring from terminal to gui
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
987 " mode (detected with the script scope s:vmode variable). It also allows for
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
988 " other potential terminal customizations that might make gui mode suboptimal.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
989 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
990 autocmd GUIEnter * if (s:vmode != "gui") | exe "colorscheme " . g:colors_name | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
991 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
992 " Highlight Trailing Space {{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
993 " Experimental: Different highlight when on cursorline
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
994 function! s:SolarizedHiTrail()
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
995 if g:solarized_hitrail==0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
996 hi! clear solarizedTrailingSpace
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
997 else
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
998 syn match solarizedTrailingSpace "\s*$"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
999 exe "hi! solarizedTrailingSpace " .s:fmt_undr .s:fg_red .s:bg_none .s:sp_red
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1000 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1001 endfunction
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1002 augroup SolarizedHiTrail
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1003 autocmd!
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1004 if g:solarized_hitrail==1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1005 autocmd! Syntax * call s:SolarizedHiTrail()
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1006 autocmd! ColorScheme * if g:colors_name == "solarized" | call s:SolarizedHiTrail() | else | augroup! s:SolarizedHiTrail | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1007 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1008 augroup END
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1009 " }}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1010 " Menus "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1011 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1012 " Turn off Solarized menu by including the following assignment in your .vimrc:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1013 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1014 " let g:solarized_menu=0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1015
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1016 function! s:SolarizedOptions()
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1017 new "new buffer
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1018 setf vim "vim filetype
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1019 let failed = append(0, s:defaults_list)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1020 let failed = append(0, s:colorscheme_list)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1021 let failed = append(0, s:options_list)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1022 let failed = append(0, s:lazycat_list)
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1023 0 "jump back to the top
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1024 endfunction
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1025 if !exists(":SolarizedOptions")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1026 command SolarizedOptions :call s:SolarizedOptions()
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1027 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1028
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1029 function! SolarizedMenu()
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1030 if exists("g:loaded_solarized_menu")
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1031 try
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1032 silent! aunmenu Solarized
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1033 endtry
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1034 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1035 let g:loaded_solarized_menu = 1
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1036
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1037 if g:colors_name == "solarized" && g:solarized_menu != 0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1038
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1039 amenu &Solarized.&Contrast.&Low\ Contrast :let g:solarized_contrast="low" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1040 amenu &Solarized.&Contrast.&Normal\ Contrast :let g:solarized_contrast="normal" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1041 amenu &Solarized.&Contrast.&High\ Contrast :let g:solarized_contrast="high" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1042 an &Solarized.&Contrast.-sep- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1043 amenu &Solarized.&Contrast.&Help:\ Contrast :help 'solarized_contrast'<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1044
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1045 amenu &Solarized.&Visibility.&Low\ Visibility :let g:solarized_visibility="low" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1046 amenu &Solarized.&Visibility.&Normal\ Visibility :let g:solarized_visibility="normal" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1047 amenu &Solarized.&Visibility.&High\ Visibility :let g:solarized_visibility="high" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1048 an &Solarized.&Visibility.-sep- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1049 amenu &Solarized.&Visibility.&Help:\ Visibility :help 'solarized_visibility'<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1050
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1051 amenu &Solarized.&Background.&Toggle\ Background :ToggleBG<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1052 amenu &Solarized.&Background.&Dark\ Background :set background=dark \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1053 amenu &Solarized.&Background.&Light\ Background :set background=light \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1054 an &Solarized.&Background.-sep- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1055 amenu &Solarized.&Background.&Help:\ ToggleBG :help togglebg<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1056
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1057 if g:solarized_bold==0 | let l:boldswitch="On" | else | let l:boldswitch="Off" | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1058 exe "amenu &Solarized.&Styling.&Turn\\ Bold\\ ".l:boldswitch." :let g:solarized_bold=(abs(g:solarized_bold-1)) \\| colorscheme solarized<CR>"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1059 if g:solarized_italic==0 | let l:italicswitch="On" | else | let l:italicswitch="Off" | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1060 exe "amenu &Solarized.&Styling.&Turn\\ Italic\\ ".l:italicswitch." :let g:solarized_italic=(abs(g:solarized_italic-1)) \\| colorscheme solarized<CR>"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1061 if g:solarized_underline==0 | let l:underlineswitch="On" | else | let l:underlineswitch="Off" | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1062 exe "amenu &Solarized.&Styling.&Turn\\ Underline\\ ".l:underlineswitch." :let g:solarized_underline=(abs(g:solarized_underline-1)) \\| colorscheme solarized<CR>"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1063
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1064 amenu &Solarized.&Diff\ Mode.&Low\ Diff\ Mode :let g:solarized_diffmode="low" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1065 amenu &Solarized.&Diff\ Mode.&Normal\ Diff\ Mode :let g:solarized_diffmode="normal" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1066 amenu &Solarized.&Diff\ Mode.&High\ Diff\ Mode :let g:solarized_diffmode="high" \| colorscheme solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1067
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1068 if g:solarized_hitrail==0 | let l:hitrailswitch="On" | else | let l:hitrailswitch="Off" | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1069 exe "amenu &Solarized.&Experimental.&Turn\\ Highlight\\ Trailing\\ Spaces\\ ".l:hitrailswitch." :let g:solarized_hitrail=(abs(g:solarized_hitrail-1)) \\| colorscheme solarized<CR>"
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1070 an &Solarized.&Experimental.-sep- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1071 amenu &Solarized.&Experimental.&Help:\ HiTrail :help 'solarized_hitrail'<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1072
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1073 an &Solarized.-sep1- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1074
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1075 amenu &Solarized.&Autogenerate\ options :SolarizedOptions<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1076
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1077 an &Solarized.-sep2- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1078
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1079 amenu &Solarized.&Help.&Solarized\ Help :help solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1080 amenu &Solarized.&Help.&Toggle\ Background\ Help :help togglebg<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1081 amenu &Solarized.&Help.&Removing\ This\ Menu :help solarized-menu<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1082
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1083 an 9999.77 &Help.&Solarized\ Colorscheme :help solarized<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1084 an 9999.78 &Help.&Toggle\ Background :help togglebg<CR>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1085 an 9999.79 &Help.-sep3- <Nop>
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1086
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1087 endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1088 endfunction
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1089
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1090 autocmd ColorScheme * if g:colors_name != "solarized" | silent! aunmenu Solarized | else | call SolarizedMenu() | endif
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1091
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1092 "}}}
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1093 " License "{{{
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1094 " ---------------------------------------------------------------------
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1095 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1096 " Copyright (c) 2011 Ethan Schoonover
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1097 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1098 " Permission is hereby granted, free of charge, to any person obtaining a copy
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1099 " of this software and associated documentation files (the "Software"), to deal
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1100 " in the Software without restriction, including without limitation the rights
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1101 " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1102 " copies of the Software, and to permit persons to whom the Software is
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1103 " furnished to do so, subject to the following conditions:
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1104 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1105 " The above copyright notice and this permission notice shall be included in
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1106 " all copies or substantial portions of the Software.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1107 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1108 " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1109 " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1110 " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1111 " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1112 " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1113 " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1114 " THE SOFTWARE.
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1115 "
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1116 " vim:foldmethod=marker:foldlevel=0
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1117 "}}}