-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimperatorrc.local
92 lines (88 loc) · 1.98 KB
/
vimperatorrc.local
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
let g:plugin_loader_roots = "~/.vimperator/vimperator-plugins/"
js <<EOM
liberator.globalVariables.plugin_loader_plugins = `
_libly
migemo_hint
migemo_completion
migemized_find
proxy
copy
sbmcommentsviewer
commandBookmarklet
opener
walk-input
`.split(/\s+/).filter(function(n) !/^!/.test(n));
EOM
" proxy
javascript <<EOM
liberator.globalVariables.proxy_settings = [
{
conf_name: 'disable',
conf_usage: 'direct connection',
settings: [
{
label: 'type',
param: 0
}
]
},
{
conf_name: 'localhost',
conf_usage: 'use squid cache proxy',
settings: [
{
label: 'type',
param: 1
},
{
label: 'http',
param: 'localhost'
},
{
label: 'http_port',
param: 8080
},
{
label: 'ssl',
param: 'localhost'
},
{
label: 'ssl_port',
param: 8080
}
]
},
{
conf_name: 'polipo',
conf_usage: 'use polipo cache proxy',
settings: [
{
label: 'type',
param: 1
},
{
label: 'http',
param: 'localhost'
},
{
label: 'http_port',
param: 8123
}
]
}
];
EOM
" copy.js
javascript <<EOM
liberator.globalVariables.copy_templates = [
{ label: 'titleAndURL', value: '%TITLE%\n%URL%' },
{ label: 'title', value: '%TITLE%', map: ',y' },
{ label: 'anchor', value: '<a href="%URL%">%TITLE%</a>' },
{ label: 'selanchor', value: '<a href="%URL%" title="%TITLE%">%SEL%</a>' },
{ label: 'htmlblockquote', value: '<blockquote cite="%URL%" title="%TITLE%">%HTMLSEL%</blockquote>' },
{ label: 'ASIN', value: 'copy ASIN code from Amazon', custom: function(){return 'http://amazon.co.jp/o/ASIN/' + content.document.getElementById('ASIN').value;} },
];
EOM
" sbmcommentsviewer
map . :viewSBMComments<Space>-t<Space>h<Space>-f<Space>id,comment<CR>
let g:def_sbm_format = "id,timestamp,tags,comment"