PageRenderTime 52ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/.config/vimb/config

https://bitbucket.org/jasonwryan/centurion
#! | 83 lines | 77 code | 6 blank | 0 comment | 0 complexity | cffe7dd28e29af7bb06ea06b3163d661 MD5 | raw file
 1# -------------------------------------------------
 2# file:     ~/.config/vimb/config
 3# author:   jason ryan http://jasonwryan.com/
 4# vim:fenc=utf-8:nu:ai:si:et:ts=2:sw=2:ft=sh:
 5# -------------------------------------------------
 6
 7# set options
 8handler-add mailto=urxvt -e mutt %s
 9handler-add ftp=urxvt -e wget %s -P /tmp/vimb
10set editor-command=urxvt -title scratchpad -geometry 86x24+40+60 -e vim %s
11set home-page=file:///home/jason/Sync/vimb/index.html
12set cookie-accept=origin
13set download-path=/home/jason/
14set header=DNT=1
15set history-max-items=30000
16set maximum-cache-size=20000
17set plugins=off
18set scripts=on
19set strict-focus=off
20set stylesheet=on
21set webinspector=off
22set x-hint-command=:sh! /home/jason/Scripts/tube <C-R>;<CR>
23
24# appearance
25set fontsize=13
26set monofontsize=10
27set minimumfontsize=10
28set status-color-bg=#222
29set status-color-fg=#696969
30set status-font=DejaVu Sans 11
31set status-ssl-font=DejaVu Sans 11
32set status-sslinvalid-font=DejaVu Sans 11
33set status-ssl-color-fg=#53A6A6
34set status-ssl-color-bg=#222
35set status-sslinvalid-color-fg=#8A2F58
36set status-sslinvalid-color-bg=#222222
37set input-font-error=DejaVu Sans 11
38set input-font-normal=DejaVu Sans 11
39set input-bg-normal=#222222
40set input-fg-normal=#CCCCCC
41set input-bg-error=#222222
42set input-fg-error=#8A2F58
43set completion-font=DejaVu Sans 11
44set completion-fg-normal=#899CA1
45set completion-fg-active=#FFFFFF
46set completion-bg-normal=#222222
47set completion-bg-active=#111111
48
49# shortcuts
50shortcut-add s=https://ixquick.com/do/metasearch.pl?&cat=web&query=host:unix.stackexchange.com+$0
51shortcut-add k=http://stackoverflow.com/search?q=[awk]+$0
52shortcut-add h=http://stackoverflow.com/search?q=[bash]+$0
53shortcut-add x=http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q=$0
54shortcut-add gh=https://github.com/search?q=$0&type=Code
55shortcut-add d=https://duckduckgo.com/?q=$0&t=Vimprobable
56shortcut-add y=https://www.youtube.com/results?search_query=$0
57shortcut-add g=https://ixquick.com/do/metasearch.pl?language=english&cat=web&query=$0
58shortcut-add b=https://ixquick.com/do/metasearch.pl?&cat=web&query=host:bbs.archlinux.org+$0
59shortcut-add a=https://wiki.archlinux.org/index.php?title=Special%%3ASearch&search=$0&go=Go
60shortcut-add w=https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special%%3ASearch&search=$0&go=Go
61shortcut-add B=https://api-ssl.bitly.com/v3/shorten?access_token=20e9827b9c5ddee1b0cec7722bfc557dec833791&longUrl=$0&format=txt
62
63# quick tabs
64nnoremap gb :tabopen http://bitbucket.jasonwryan.com<CR>
65nnoremap ge :tabopen https://wiki.archlinux.org/index.php/Forum_Etiquette<CR>
66nnoremap gf :tabopen http://flickr.jasonwryan.com<CR>
67nnoremap gj :tabopen http://jasonwryan.com<CR>
68nnoremap gp :tabopen http://127.0.0.1:4000<CR>
69nnoremap gr :tabopen https://feedbin.com<CR>
70nnoremap gs :tabopen https://unix.stackexchange.com<CR>
71
72# basic mappings
73nnoremap b <C-O>
74nnoremap m <C-I>
75nnoremap x <C-Q>
76nnoremap <C-S> gf
77nnoremap <Down> j
78nnoremap <Up> k
79nnoremap <F11> :set fullscreen!<CR>
80nmap <C-C>o :set caret=on<CR>
81nmap <C-C>f :set caret=off<CR>
82nmap <C-B> :eval! document.location='https://pinboard.in/add?next=same&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)<CR>
83