-
Notifications
You must be signed in to change notification settings - Fork 0
/
_pentadactylrc
201 lines (174 loc) · 7.19 KB
/
_pentadactylrc
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
"hg6950
loadplugins '\.(js|penta)$'
group user
colorscheme molokai
set editor='nvim-qt -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set textwidth=79"'
set defsearch=duckduckgo
set suggestengines=duckduckgo
set hintkeys=hjkl;asdfg
set maxitems=30
set guioptions=bCrsn
set spelllang="en-US"
set! spellchecker.dictionary="en_US-large"
set! spellchecker.dictionary.override="en_US-large"
"" about:config Tweaks
"Performance Tweaks
set! network.dns.disableIPv6=true
set! network.http.pipelining=true
set! network.http.pipelining.ssl=true
set! network.http.proxy.pipelining=true
set! network.http.pipelining.maxrequests=64
set! network.http.max-connections=512
set! network.http.max-persistent-connections-per-server=32
set! nglayout.initialpaint.delay=0
set! ui.submenuDelay=0
"Privacy
set! browser.newtabpage.enhanced=false
set! browser.safebrowsing.enabled=false
set! browser.safebrowsing.malware.enabled=false
set! datareporting.healthreport.uploadEnabled=false
set! dom.event.clipboardevents.enabled=false
set! geo.enabled=false
set! geo.wifi.uri=127.0.0.1
set! network.cookie.cookieBehavior=1
set! network.dns.disablePrefetch=true
set! network.http.sendSecureXSiteReferrer=false
set! network.prefetch-next=false
set! privacy.donottrackheader.enabled=true
set! privacy.donottrackheader.value=1
set! signon.rememberSignons=false
set! toolkit.telemtry.enabled=false
set! layout.spellcheckDefault=2
" Disable Pale Moon's Tab Switching Previews
set! browser.ctrlTab.previews=false
" Fast scroll with j/k
map -builtin j 10j
map -builtin k 10k
" Slow scroll with J/K
map -builtin J j
map -builtin K k
" Search google with v/V
nmap -builtin v oduckduckgo !g<space>
nmap -builtin V tduckduckgo !g<space>
" Search stackage/hackage with x/X
nmap -builtin x tduckduckgo !stackage<space>
nmap -builtin X tduckduckgo !hackage<space>
" Map Ctrl-N/P in Insert mode to Next/Previous Tab
imap -builtin <C-n> <ESC>:tabnext<CR>
imap -builtin <C-p> <ESC>:tabprevious<CR>
" Map jj in Insert Mode to Switch to Normal Mode
imap -builtin jj <Esc>
" Map Ctrl-j/k in Command mode to Next/Previous Entry in Command History
cmap -builtin <C-j> <Down>
cmap -builtin <C-k> <Up>
" Open Downloads with Ctrl-Shift-D
nmap -builtin <C-S-d> :downloads<CR>
"" Bookmarks
" New Code Paste
bmark -keyword p -title New\ Paste http://sleepanarchy.com/p/
" Media Library
bmark -keyword ml -title Media\ Library http://sleepanarchy.com/admin/media-library/browse/
" Links
bmark -keyword l -title Links http://sleepanarchy.com/links
" Add Link
bmark -keyword al -title Add\ Link http://sleepanarchy.com/admin/linkdump/dump/add/
" Redmine Roadmaps
bmark -keyword accrm -title Accounting\ Roadmap http://bugs.sleepanarchy.com/projects/acorn-accounting/roadmap
bmark -keyword seserm -title SESE\ Website\ Roadmap http://bugs.sleepanarchy.com/projects/sese-website/roadmap
bmark -keyword fecrm -title FEC\ Roadmap http://bugs.sleepanarchy.com/projects/fec/roadmap
bmark -keyword ficrm -title FIC\ Roadmap http://bugs.sleepanarchy.com/projects/fic/roadmap
bmark -keyword rssrm -title RSSonate\ Roadmap http://bugs.sleepanarchy.com/projects/rssonate/roadmap
" Important Websites
bmark -keyword fec -title FEC\ Website http://thefec.org
bmark -keyword fic -title FIC\ Website http://www.ic.org
bmark -keyword sendy -title SESE\ Sendy http://sendy.southernexposure.com
bmark -keyword sese -title SESE\ Website http://www.southernexposure.com
bmark -keyword seseblog -title SESE\ Blog http://www.southernexposure.com/blog/
bmark -keyword rss -title RSSonate http://rssonate.com
" Elm
bmark -keyword elmp -title Elm\ Packages http://package.elm-lang.org
" Adminer
bmark -keyword sql -title Adminer http://localhost/adminer/
"" Bookmark Keyword Shortcuts
" Subreddit
bmark -keyword /r/ -title Go\ To\ Subreddit https://old.reddit.com/r/%s
" SleepAnarchy Issue
bmark -keyword i -title Go\ To\ Issue http://bugs.sleepanarchy.com/issues/%s
" SleepAnarchy Roadmap
bmark -keyword rm -title Go\ To\ Redmine\ Roadmap http://bugs.sleepanarchy.com/projects/%s/roadmap
" ClubHouse Story
bmark -keyword ch -title Go\ To\ Story http://app.clubhouse.io/costar/story/%s
"" Autocommands
" Use redminewiki editor filetype on bug trackers
autocmd LocationChange bugs.sleepanarchy.com,projects.acorn
\ :set editor='gvim -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set ft=redminewiki tw=0 nowrap"'
" Use moin editor filetype on MoinMoin Wiki
autocmd LocationChange wiki.acorn
\ :set editor='gvim -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set textwidth=79" -c "set ft=moin"'
" Set no auto linebreaks on FIC sites
autocmd LocationChange staging.wpengine.com,ic.org
\ :set editor='gvim -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set textwidth=0 wrapmargin=0 filetype=html synmaxcol=0 wrap"'
" Set elm editor filetype on Elm Slack
autocmd LocationChange elmlang.slack.com
\ :set editor='gvim -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set textwidth=79 ft=elm"'
autocmd LocationChange !bugs.sleepanarchy.com,!projects.acorn,!ic.org,!wiki.acorn,!elmlang.slack.com,*
\ :set editor='gvim -f +<line> +"sil! call cursor(0, <column>)" <file> -c "set textwidth=79"'
"" Auto Page Zoom
" A toggleable zoom on everything but local/staging servers
group autozoom | group default
com! autozoomon
\ -nargs=0
\ -description "Enable Auto-Zoom"
\ autocmd LocationChange -group=autozoom !getboostrap.com,!localhost,!.*staging.*,* :zoom! 135
\ autocmd LocationChange -group=autozoom getbootstrap.com,localhost,.*staging.* :zoom! 100
\ set! penta.autozoom=true
\ zoom! 135
com! autozoomoff
\ -nargs=0
\ -description "Disable Auto-Zoom"
\ autocmd! LocationChange -group=autozoom
\ set! penta.autozoom=false
\ bufdo zoom! 100
com! toggleautozoom
\ -nargs=0
\ -description "Toggle Auto-Zoom"
\ if prefs.get('penta.autozoom', true)
\ autozoomoff
\ echo "Auto Zoom Disabled"
\ else
\ autozoomon
\ echo "Auto Zoom Enabled"
\ endif
nmap -builtin <A-z> :toggleautozoom<CR>
autozoomon
" Fix Status Bar Disappearing When Switching to Fullscreen
autocmd Fullscreen .* :set guioptions+=s
"" Commands
" Check Weather via Google
com! -nargs=0 weather tabopen !g weather 23117
com! -nargs=0 we weather
" Source the Default Pentadactyl Config
com! -nargs=0 sp source ~/.pentadactylrc
" Lookup Docs for an Elm Package(e.g. `elmp prikhi/decimal`)
com! -nargs=1 elmp tabopen http://package.elm-lang.org/packages/<args[1]>/latest
" Addon Configurations
" BlankYourMonitor
set! bym.bkg=#1B1D1E
set! bym.link=#F92672
set! bym.text=#F8F8F0
set! bym.vlink=#FD971F
" Download Status Bar
set! extensions.downloadbar.autocleancompletedonquit=true
set! extensions.downloadbar.clearafterlaunch=true
set! extensions.downloadbar.hideclearbutton=true
set! extensions.downloadbar.hidedownloadsbutton=true
set! extensions.downloadbar.barbackgroundcolor=#1B1D1E
set! extensions.downloadbar.downloadbackgroundcolor=#1B1D1E
set! extensions.downloadbar.downloadcompletecolor=#A6E22E
set! extensions.downloadbar.downloadpausecolor=#FD971F
set! extensions.downloadbar.downloadprogresscolor=#F92672
set! extensions.downloadbar.downloadtextcolor=#F8F8F0
" HTTPS Everywhere
set! extensions.https_everywhere._observatory.priv_dns=true
set! extensions.encryptedweb._observatory.priv_dns=true
" vim: set ft=vim: