1"
2" cream-conf.vim
3"
4" Cream -- An easy-to-use configuration of the famous Vim text editor
5" [ http://cream.sourceforge.net ] Copyright (C) 2001-2011 Steve Hall
6"
7" License:
8" This program is free software; you can redistribute it and/or modify
9" it under the terms of the GNU General Public License as published by
10" the Free Software Foundation; either version 3 of the License, or
11" (at your option) any later version.
12" [ http://www.gnu.org/licenses/gpl.html ]
13"
14" This program is distributed in the hope that it will be useful, but
15" WITHOUT ANY WARRANTY; without even the implied warranty of
16" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17" General Public License for more details.
18"
19" You should have received a copy of the GNU General Public License
20" along with this program; if not, write to the Free Software
21" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22" 02111-1307, USA.
23"
24"
25"**********************************************************************
26" WARNING:
27" These options are for advanced users only. If you are not an
28" experienced Vim user, it is recommended that you leave this file
29" alone to avoid undesirable or destructive behavior. (Or at least
30" to maintain your productivity. ;)
31"
32"**********************************************************************
33"
34" Description:
35" o Use these options to over-ride default Cream conditions. Each should
36"   be pretty self explanitory.
37" o None of these options are required for Cream to initialize or
38"   function properly. If in doubt, comment out.
39" o Most of these are simply the globals we store in viminfo. An
40"   autocmd calls this function to overwrite those pulled from the
41"   viminfo on startup.
42" o While called via autocmd VimEnter, the function is actually called
43"   twice. The first time happens immediately after being sourced so
44"   that Cream can abort further loads if a user has Vim or Vi
45"   behavior set.
46" o String values/types must be quoted
47" o Number values/types must be unquoted, 1=on 0=off
48"
49
50function! Cream_conf_override()
51" over-ride defaults and last-saved settings
52
53	"----------------------------------------------------------------------
54	" behavior and expert mode
55
56	" behavior (default "cream", other
57	"           options "creamlite", "vim", "vi")
58	"let g:CREAM_BEHAVE = "cream"
59
60	" behavior warning (default on=1, off=0)
61	"let g:cream_behave_warn = 0
62
63	" expert mode (default 0)
64	"let g:CREAM_EXPERTMODE = 0
65
66	" open last buffer (default "[path]")
67	"let g:CREAM_LAST_BUFFER = ""
68
69	" open last buffer (default [not existing] or 0, on=1)
70	"let g:CREAM_LAST_BUFFER_FORGET = 0
71
72	" bracket matching (default or 0, on=1)
73	"let g:CREAM_BRACKETMATCH = 0
74
75	" Vim plugins loading (default [not existing] or 0 to enable
76	" plugins, 1 to disable them)
77	"let g:CREAM_NOVIMPLUGINS = 0
78
79	" Default path for current working directory
80	"let g:CREAM_CWD = '/tmp'
81
82	"----------------------------------------------------------------------
83	" font and window positioning
84
85	if has("win32")
86		let os = "WIN"
87	elseif has("unix")
88		let os = "UNIX"
89	else
90		let os = "OTHER"
91	endif
92
93	" font (default "[font spec]")
94	"let g:CREAM_FONT_{os} = ""
95
96	" window position (default 50, 50, 50, 80)
97	" Note: Relies on font size above.
98	"let g:CREAM_WINPOSY_{os} = 50
99	"let g:CREAM_WINPOSX_{os} = 50
100	"let g:CREAM_LINES_{os} = 50
101	"let g:CREAM_COLS_{os} = 80
102
103	" font for column mode (default "[font spec]")
104	"let g:CREAM_FONT_COLUMNS = ""
105
106	"----------------------------------------------------------------------
107	" editing
108
109	" tabstop and shiftwidth (default 8)
110	"let g:CREAM_TABSTOP = 8
111
112	" autoindent (default 1)
113	"let g:CREAM_AUTOINDENT = 1
114
115	" wrap (default 1)
116	"let g:CREAM_WRAP = 1
117
118	" autowrap and expandtabs (default 0)
119	"let g:CREAM_AUTOWRAP = 0
120
121	" textwidth (default 80)
122	"let g:CREAM_AUTOWRAP_WIDTH = 80
123
124	" line numbers (default 1)
125	"let g:CREAM_LINENUMBERS = 1
126
127	" show invisibles (default 0)
128	"let g:LIST = 0
129
130	" show toolbar (default 1)
131	"let g:CREAM_TOOLBAR = 1
132
133	" make pop automatic upon "("  (default 0)
134	" (Note: only available on Windows)
135	"let g:CREAM_POP_AUTO = 0
136
137	" color theme (default "[cream color theme]"))
138	"let g:CREAM_COLORS = ""
139	"let g:CREAM_COLORS_SEL = ""
140
141	" daily read file (no default)
142	"let g:CREAM_DAILYREAD = ""
143
144	" single session (default 0)
145	"let g:CREAM_SINGLESERVER = 0
146
147	" spell check language (no default)
148	"let g:CREAM_SPELL_LANG = ""
149	" spell check multiple dictionaries (default 0)
150	"let g:CREAM_SPELL_MULTIDICT = 0
151
152	" selection highlighting (default 0)
153	"let g:CREAM_SEARCH_HIGHLIGHT = 0
154
155	"----------------------------------------------------------------------
156	" find and replace
157
158	" find
159	" find string ("Find Me!")
160	"let g:CREAM_FFIND = "Find Me!"
161	" case sensitive (default 0)
162	"let g:CREAM_FCASE = 0
163	" use regular expressions (default 0)
164	"let g:CREAM_FREGEXP = 0
165
166	" replace
167	" find string ("Find Me!")
168	"let g:CREAM_RFIND = "Find Me!"
169	" replace string ("Find Me!")
170	"let g:CREAM_RREPL = "Replace Me!"
171	" case sensitive (default 0)
172	"let g:CREAM_RCASE = 0
173	" use regular expressions (default 0)
174	"let g:CREAM_RREGEXP = 0
175	" replace one by one (default 0)
176	"let g:CREAM_RONEBYONE = 0
177
178	" replace-multi
179	" find string ("Find Me!")
180	"let g:CREAM_RMFIND = "Find Me!"
181	" replace string ("Replace Me!")
182	"let g:CREAM_RMREPL = "Replace Me!"
183	" path/filename (no default)
184	"let g:CREAM_RMPATH = ""
185	" case sensitive (default 0)
186	"let g:CREAM_RMCASE = 0
187	" use regular expressions (default 0)
188	"let g:CREAM_RMREGEXP = 0
189
190endfunction
191call Cream_conf_override()
192
193