/
presets.txt
182 lines (127 loc) · 6.18 KB
/
presets.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
*presets.txt* Presets -- Quickly switch between vim configurations
Author: Tom Link, micathom at gmail com
This plugins allows users to push presets (sets of |options|) onto a
configuration stack and remove them later on, i.e., it allows users to
quickly switch between pre-defined configurations (e.g. GUI-related
options).
In order to push a preset, use the |:Preset| command:
:Preset! NAME
-----------------------------------------------------------------------
Install~
Edit the vba file and type: >
:so %
See :help vimball for details.
Post-Install~
Check the values of the following variables and set them in your |vimrc|
file if necessary:
- |g:presets#font|
- |g:presets#font_sizes|
========================================================================
Contents~
g:presets_default .......... |g:presets_default|
:Preset .................... |:Preset|
:ListPresets ............... |:ListPresets|
g:presets#font ............. |g:presets#font|
presets#font_base_size ..... |presets#font_base_size|
g:presets#font_sizes ....... |g:presets#font_sizes|
g:presets#sets ............. |g:presets#sets|
presets#Restore ............ |presets#Restore()|
presets#Maximize ........... |presets#Maximize()|
presets#Push ............... |presets#Push()|
presets#Pop ................ |presets#Pop()|
presets#List ............... |presets#List()|
g:presets#pad#tw ........... |g:presets#pad#tw|
presets#pad#Pad ............ |presets#pad#Pad()|
presets#pad#Unpad .......... |presets#pad#Unpad()|
========================================================================
plugin/presets.vim~
*g:presets_default*
g:presets_default (default: '')
The preset to set after startup.
*:Preset*
:Preset[!] [PRESET]
Push the configuration of PRESET.
If no PRESET argument is given, list the presets on the configuration
stack.
With [!], pop previous presets from the configuration stack. This
happens before pushing new presets.
This command supports certain special names -- see |presets#Push()|
for details.
*:ListPresets*
:ListPresets
List the presets on the configuration stack.
========================================================================
autoload/presets.vim~
*g:presets#font*
g:presets#font (default: ...)
You might want to change this variable according to your
preferences.
*presets#font_base_size*
presets#font_base_size (default: 10)
You might want to change this variable according to your
preferences.
*g:presets#font_sizes*
g:presets#font_sizes (default: {...})
Relative font sizes based on the value of
|presets#font_base_size|.
The following font sizes are predefined: tiny, small, normal,
Normal, big, large, Large.
*g:presets#sets*
g:presets#sets (default: {})
A dictionary with the keys:
include ... A list of other presets
global ... A dictionary of global options
window ... A dictionary of window-local options
buffer ... A dictionary of buffer-local options
The option dictionaries keys usually are options names than should
be set to its value. If the key starts with a colon (:) though,
the value is an ex command.
If the key defines a ex command, the value can be either a string
or a list of two strings, where the second string is a command
that undoes the effect of the first string when |:execute|d. If
the value of a string begins with asterisk "*", the string is
evaluated first via |eval()| -- the result of the evaluation
should be the actual ex command.
Any keys can be prepended with a number that defines its priority.
Users should use |g:presets#sets_user| to append user-defined
presets.
Besides presets for font sizes (see |g:presets#font_sizes|), the
following presets are known:
ruler ... Hide the |statusline| and display a |ruler|
plain ... Remove window/frame decorations
plainer ... plain + ruler
full ... Maximize the window
screen ... Optimize the use of available screen estate
fullscreen ... Maximize the use of available screen estate
darkscreen ... Simulate darkscreen
darkscreen ... Simulate darkscreen
buffercol ... Center current buffer
Buffercol ... buffercol + plainer
darkcol ... Simulate darkscreen (center current buffer)
*presets#Restore()*
presets#Restore(lines, columns, x, y)
*presets#Maximize()*
presets#Maximize(fullscreen)
Maximize the window.
You might need to redefine it if it doesn't work for you.
*presets#Push()*
presets#Push(names)
Push the preset NAME onto the configuration stack.
The following special NAMEs are supported:
show ... list the names of the presets on the configuration stack
*presets#Pop()*
presets#Pop(?number = 1)
Pop the last preset from the configuration stack.
If number is -1, pop all presets.
*presets#List()*
presets#List(use_echom)
List the presets on the configuration stack.
========================================================================
autoload/presets/pad.vim~
*g:presets#pad#tw*
g:presets#pad#tw (default: 72)
*presets#pad#Pad()*
presets#pad#Pad(tw, ...)
*presets#pad#Unpad()*
presets#pad#Unpad()
vim:tw=78:fo=w2croql:isk=!-~,^*,^|,^":ts=8:ft=help:norl: