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
|
/**
* vimb - a webkit based vim like browser.
*
* Copyright (C) 2012-2013 Daniel Carl
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*/
#ifndef _DEFAULT_H
#define _DEFAULT_H
#include "stdlib.h"
static char *default_config[] = {
"nmap gf=source",
"nmap gF=inspect",
"nmap :=input",
"nmap /=input /",
"nmap ?=input ?",
"nmap n=search-forward",
"nmap N=search-backward",
"nmap *=search-selection-forward",
"nmap #=search-selection-backward",
"nmap o=input :open ",
"nmap t=input :tabopen ",
"nmap O=inputuri :open ",
"nmap T=inputuri :tabopen ",
"nmap gh=open",
"nmap gH=tabopen",
"nmap u=open-closed",
"nmap U=tabopen-closed",
"nmap <ctrl-q>=quit",
"nmap <ctrl-o>=back",
"nmap <ctrl-i>=forward",
"nmap r=reload",
"nmap R=reload!",
"nmap C=stop",
"nmap <ctrl-f>=pagedown",
"nmap <ctrl-b>=pageup",
"nmap <ctrl-d>=halfpagedown",
"nmap <ctrl-u>=halfpageup",
"nmap gg=jumptop",
"nmap G=jumpbottom",
"nmap 0=jumpleft",
"nmap $=jumpright",
"nmap h=scrollleft",
"nmap l=scrollright",
"nmap k=scrollup",
"nmap j=scrolldown",
"nmap f=hint-link",
"nmap F=hint-link-new",
"nmap ;o=hint-input-open",
"nmap ;t=hint-input-tabopen",
"nmap ;y=hint-yank",
"nmap ;i=hint-image-open",
"nmap ;I=hint-image-tabopen",
"nmap ;e=hint-editor",
"nmap ;s=hint-save",
#ifdef FEATURE_QUEUE
"nmap ;p=hint-queue-push",
"nmap ;P=hint-queue-unshift",
"nmap <ctrl-p>=queue-pop",
#endif
"nmap y=yank-uri",
"nmap Y=yank-selection",
"nmap p=open-clipboard",
"nmap P=tabopen-clipboard",
"nmap zi=zoomin",
"nmap zI=zoominfull",
"nmap zo=zoomout",
"nmap zO=zoomoutfull",
"nmap zz=zoomreset",
"nmap gu=descent",
"nmap gU=descent!",
"nmap <ctrl-z>=pass-through",
"nmap gi=focus-input",
"cmap <tab>=next",
"cmap <shift-tab>=prev",
"cmap <up>=hist-prev",
"cmap <down>=hist-next",
"imap <ctrl-t>=editor",
"shortcut-add dl=https://duckduckgo.com/html/?q=$0",
"shortcut-add dd=https://duckduckgo.com/?q=$0",
"shortcut-default dl",
"set images=on",
"set cursivfont=serif",
"set defaultencondig=utf-8",
"set defaultfont=sans-serif",
"set fontsize=11",
"set monofontsize=11",
"set caret=off",
"set webinspector=off",
"set offlinecache=on",
"set pagecache=on",
"set plugins=on",
"set scripts=on",
"set xssauditor=on",
"set minimumfontsize=5",
"set monofont=monospace",
"set backgrounds=on",
"set sansfont=sens-serif",
"set seriffont=serif",
"set useragent=" PROJECT "/" VERSION " (X11; Linux i686) AppleWebKit/535.22+ Compatible (Safari)",
"set stylesheet=on",
"set proxy=on",
"set cookie-timeout=4800",
"set strict-ssl=on",
"set scrollstep=40",
"set status-color-bg=#000",
"set status-color-fg=#fff",
"set status-font=monospace bold 8",
"set status-ssl-color-bg=#95e454",
"set status-ssl-color-fg=#000",
"set status-ssl-font=monospace bold 8",
"set status-sslinvalid-color-bg=#f77",
"set status-sslinvalid-color-fg=#000",
"set status-sslinvalid-font=monospace bold 8",
"set input-bg-normal=#fff",
"set input-bg-error=#f77",
"set input-fg-normal=#000",
"set input-fg-error=#000",
"set input-font-normal=monospace normal 8",
"set input-font-error=monospace bold 8",
"set completion-font=monospace normal 8",
"set completion-fg-normal=#f6f3e8",
"set completion-fg-active=#fff",
"set completion-bg-normal=#656565",
"set completion-bg-active=#777",
"set ca-bundle=/etc/ssl/certs/ca-certificates.crt",
"set home-page=https://github.com/fanglingsu/vimb",
"set download-path=",
"set history-max-items=2000",
"set editor-command=x-terminal-emulator -e vi %s",
#if WEBKIT_CHECK_VERSION(2, 0, 0)
"set insecure-content-show=off",
"set insecure-content-run=off",
#endif
NULL
};
#endif /* end of include guard: _DEFAULT_H */
|