etc/vimb/config
2020-11-04 04:03:20 +05:00

90 lines
3.7 KiB
Text

# Homepage that vimb opens if started without a URI.
set home-page=about:blank
# 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=~/tmp/
# 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=termite -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,de
# Enable or disable support for WebGL on pages.
set webgl=true
# 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=DejaVu Sans
# The font family used as the default for content using monospace font.
set monospace-font=DejaVu Sans Mono
# The font family used as the default for content using sans-serif font.
set sans-serif-font=DejaVu Sans
# The font family used as the default for content using serif font.
set serif-font=DejaVu Serif
# 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=100
# 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
shortcut-add wwr=https://ru.wikipedia.org/wiki/$0
shortcut-add wwe=https://en.wikipedia.org/wiki/$0
shortcut-add wdr=https://ru.wiktionary.org/wiki/$0
shortcut-add wde=https://en.wiktionary.org/wiki/$0
shortcut-add aur=https://aur.archlinux.org/packages.php?O=0&K=$0&do_Search=Go
shortcut-add aw=https://wiki.archlinux.org/index.php/Special:Search?fulltext=Search&search=$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
# GUI color settings
# Color scheme: Base16 Eighties (https://github.com/chriskempson/base16)
set completion-css=color:#d3d0c8;background-color:#393939;font:12pt DejaVu Sans Mono;
set completion-hover-css=color:#d3d0c8;background-color:#393939;font:12pt DejaVu Sans Mono;
set completion-selected-css=color:#d3d0c8;background-color:#515151;font:12pt DejaVu Sans Mono;
set input-css=color:#d3d0c8;background-color:#393939;font:12pt DejaVu Sans Mono;
set input-error-css=color:#f2777a;background-color:#393939;font:12pt DejaVu Sans Mono;
set status-css=color:#ffcc66;background-color:#393939;font:12pt DejaVu Sans Mono;
set status-ssl-css=color:#99cc99;background-color:#393939;font:12pt DejaVu Sans Mono;
set status-ssl-invalid-css=color:#f2777a;background-color:#393939;font:12pt DejaVu Sans Mono;
nnoremap gt :sh! xdotool key --window $VIMB_XID ctrl+shift+l<CR><Esc>
nnoremap gT :sh! xdotool key --window $VIMB_XID ctrl+shift+h<CR><Esc>
nnoremap 1gt :sh! xdotool key --window $VIMB_XID ctrl+1<CR><Esc>