summaryrefslogtreecommitdiffstats
path: root/.config/vimb/config
blob: 708ab748243850a7345c50f2f14267742df8d610 (plain)
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
# vim: ft=conf
# Homepage that vimb opens if started without a URI.
set home-page=https://duckduckgo.com/

# Path to the default download directory. If no download directory is set,
# download will be written into current directory. The following pattern will
# be expanded if the download is started '~/', '~user', '$VAR' and '${VAR}'.
set download-path=~/dl/

# Command with placeholder '%s' called if form field is opened with $EDITOR to
# spawn the editor-like `x-terminal-emulator -e vim %s'. To use Gvim as the
# editor, it's necessary to call it with `-f' to run it in the foreground.
set editor-command=st -e nvim %s

# If enabled the inputbox will be hidden whenever it contains no text.
set input-autohide=true

# Enable or disable the spell checking feature.
set spell-checking=true

# Set comma separated list of spell checking languages to be used for
# spell checking.
set spell-checking-languages=en

# Enable or disable support for WebGL on pages.
set webgl=false

# While typing a search command, show where the pattern typed so far matches.
set incsearch=true

# The font family to use as the default for content that does not specify a
# font.
set default-font=BlexMono Nerd Font

# The font family used as the default for content using monospace font.
set monospace-font=BlexMono Nerd Font

# The font family used as the default for content using sans-serif font.
set sans-serif-font=BlexMono Nerd Font

# The font family used as the default for content using serif font.
set serif-font=BlexMono Nerd Font

# The default font size used to display text.
set font-size=16

# Default font size for the monospace font.
set monospace-font-size=13

# Default Full-Content zoom level in percent. Default is 100.
set default-zoom=110

# Shortcuts allow the opening of an URI built up from a named template with
# additional parameters.
shortcut-add duck=https://duckduckgo.com/?q=$0
shortcut-add d=http://dict.cc/?s=$0
shortcut-add g=https://encrypted.google.com/search?q=$0
shortcut-add y=http://www.youtube.com/results?search_query=$0
shortcut-add s=https://www.startpage.com/do/dsearch?query=$0

# Set the shortcut as the default, that is the shortcut to be used if no
# shortcut is given and the string to open is not an URI.
shortcut-default duck

# Map page zoom in normal mode to keys commonly used across applications
# + (zoom in), - (zoom out), = (zoom reset)
nmap + zI
nmap - zO
nmap = zz
nmap H <C-o>
nmap L <C-o>
nmap , :set stylesheet=false<CR>
nmap . :set stylesheet=true<CR>
nmap <C-b> :set status-bar=true<CR>
nmap <C-n> :set status-bar=false<CR>

set dark-mode=true
set status-bar=false
set javascript-can-access-clipboard=false
set intelligent-tracking-prevention=true
set geolocation=never
set user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

# GUI color settings
# Color scheme: Base16 Eighties (https://github.com/chriskempson/base16)
set completion-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font;
set completion-hover-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font;
set completion-selected-css=color:#ebdbb2;background-color:#515151;font:12pt BlexMono Nerd Font;
set input-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font;
set input-error-css=color:#f2777a;background-color:#393939;font:12pt BlexMono Nerd Font;
set status-css=color:#ffcc66;background-color:#32302f;font:12pt BlexMono Nerd Font;
set status-ssl-css=color:#99cc99;background-color:#32302f;font:12pt BlexMono Nerd Font;
set status-ssl-invalid-css=color:#f2777a;background-color:#32302f;font:12pt BlexMono Nerd Font;