-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pentadactylrc
43 lines (34 loc) · 2.48 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
set editor="/usr/local/bin/mvim -f"
set visualbell
hi Bell display: none;
set wildmode="list:full"
set complete+=suggestion
set maxitems=8
"loadplugins '\.(js|penta)$'
map <silent> <F2> : set go!=T <CR>
"Next Page and Previous Page超级的下一页,基本上是够用了.快捷键是[[和]]
set nextpattern=\s*下一页|下一张|下一篇|下页|后页\s*,^\bnext\b,\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b
set nextpattern=\s*上一页|上一张|上一篇|上页|前页\s*,^\bprev|previous\b,\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$
map -builtin j 5j
map -builtin k 5k
map -builtin , :tabprevious<CR>
map -builtin m :tabnext<CR>
com! fy :o javascript:%20void((function()%20{var%20element%20=%20document.createElement('script');element.id%20=%20'outfox_seed_js';element.charset%20=%20'utf-8',element.setAttribute('src',%20'http://fanyi.youdao.com/web2/seed.js?'%20+%20Date.parse(new%20Date()));document.body.appendChild(element);})())
com! ip -description "Bookmarklet: A simple tool to save web pages for reading later" :o javascript:function%20iprl5(){var%20d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/rEGmpZUeybEE?a=read-later&u='+encodeURIComponent(l.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);}catch(e){alert('Please%20wait%20until%20the%20page%20has%20loaded.');}}iprl5();void(0)
com! ts -description "Bookmarklet: Share on Twitter" :o javascript:(function(){window.twttr=window.twttr||{};var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());
set hintkeys=asdfghjkl;
"style -name tabbrowser-height-fix chrome://* <<EOM
"[dactyl-australis=true] .tabbrowser-tabs {
" max-height: unset !important;
"}
"EOM
qmark m https://mail.google.com
qmark t https://twitter.com
qmark w http://weibo.com
qmark d http://douban.com
qmark y http://news.ycombinator.com
qmark r http://digg.com/reader
qmark c http://code.admaster.co
qmark a http://conf.admaster.co
autocmd LocationChange ^https?://mail\.google\.com/ :normal! <C-z>
autocmd LocationChange ^https?://digg\.com\/reader\/ :normal! <C-z>