-
Notifications
You must be signed in to change notification settings - Fork 4
/
vimsetting.txt
140 lines (117 loc) · 6.57 KB
/
vimsetting.txt
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
//Surfing key config
mapkey('<Ctrl-y>','Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
10QflvxnGiX5Pkii3dQB
e@
e@
addSearchAliasX
addSearchAliasX
addSearchAliasXj
//map
addSearchAliasX('mN', 'navermap', 'https://map.naver.com/?query=');
addSearchAliasX('mG', '구글맵', 'https://www.google.com/maps?q=');
addSearchAliasX('R', '도로명주소', 'http://www.juso.go.kr/support/AddressMainSearch.do?searchType=location_newaddr&searchKeyword=');
addSearchAliasX
addSearchAliasX
addSearchAliasX
s
//shorten - what is.. who is.. where is..
addSearchAliasX('wm', '뜻', 'https://www.googlecom/search?q=what+is+the+meaning+of+');
addSearchAliasX('wM', '방법', 'https://www.google.com/search?q=method+of+');
addSearchAliasX('wU', '사용예', 'https://www.google.com/search?q=usage+of+');
addSearchAliasX('wE', '예제', 'https://www.google.com/search?q=example+of+');
addSearchAliasX('wD', '차이점', 'https://www.google.com/search?q=difference+between+');
addSearchAliasX('wL', '리스트', 'https://www.google.com/search?q=list+of+');
addSearchAliasX('wR', '랭킹', 'https://www.google.com/search?q=rank+of+');
addSearchAliasX('wS', '공통점', 'https://www.google.com/search?q=common+point+of+');
//file 확장자
addSearchAliasX('pdF', 'pdf', 'https://www.google.com/search?hl=en&biw=1600&bih=817&ei=ufUTW5_5FcGVmAXPqAc&q=filetype%3Apdf+');
addSearchAliasX('cpP', 'cpp', 'https://www.google.com/search?hl=en&biw=1600&bih=817&ei=ufUTW5_5FcGVmAXPqAc&q=filetype%3Acpp+');
addSearchAliasX('hwP', 'hwp', 'https://www.google.com/search?hl=en&biw=1600&bih=817&ei=ufUTW5_5FcGVmAXPqAc&q=filetype%3Ahwp+');
addSearchAliasX('ppT', 'ppt', 'https://www.google.com/search?hl=en&biw=1600&bih=817&ei=ufUTW5_5FcGVmAXPqAc&q=filetype%3Appt+');
//dictionary and naver
addSearchAliasX('t', '한글영어번역', 'https://translate.google.co.kr/?hl=ko#ko/en/');
addSearchAliasX('T', '영어한글번역', 'https://translate.google.co.kr/?hl=ko#en/ko/');
addSearchAliasX('na', '네이버사전all', 'http://dic.naver.com/search.nhn?dicQuery=');
addSearchAliasX('ne', '네어버사전example', 'http://endic.naver.com/search_example.nhn?sLn=kr&query=');
//shop
addSearchAliasX('az', '아마존', 'https://www.amazon.com/s/?field-keywords=');
addSearchAliasX('sC', '쿠팡', 'http://www.coupang.com/np/search?component=&q=');
addSearchAliasX('sD', '다나와', 'http://search.danawa.com/dsearch.php?k1=');
addSearchAliasX('sI', '인터파크', 'http://isearch.interpark.com/isearch?q=');
addSearchAliasX('sT', '티몬', 'http://search.ticketmonster.co.kr/search/?keyword=');
addSearchAliasX('sY', 'yes24', 'http://www.yes24.com/searchcorner/Search?keywordAd=&keyword=&domain=ALL&qdomain=%C0%FC%C3%BC&Wcode=001_005&query=');
//music
addSearchAliasX('sc', 'soundcloud', 'https://soundcloud.com/search?q=');
addSearchAliasX('scI', 'soundcloudid', 'https://soundcloud.com/');
addSearchAliasX('sp', 'spotify', 'https://open.spotify.com/search/results/');
addSearchAliasX('spA', 'spotify', 'https://open.spotify.com/search/albums/');
addSearchAliasX('ml', 'melon', 'https://www.melon.com/search/total/index.htm?q=');
//coding
addSearchAliasX('L', 'Im feeling lucky', 'https://www.google.com/search?btnI=1&q=');
addSearchAliasX('C', 'search coding', 'https://searchcode.com/?q=' );
addSearchAliasX('cw', 'chrome webstore', 'https://chrome.google.com/webstore/search/' );
addSearchAliasX('M', 'math (수학수식계산)', 'https://www.searchonmath.com/result?equation=' );
addSearchAliasX('W', '계산기(울프럼알파)', 'https://www.wolframalpha.com/input/?i=');
//Video
addSearchAliasX('Y', 'youtube', 'https://www.youtube.com/results?search_query=');
//Wiki
addSearchAliasX('nW', '나무위키', 'https://namu.wiki/w/');
addSearchAliasX('eW', '영문위키', 'https://www.wikiwand.com/en/');
addSearchAliasX('kW', '한글위키', 'https://www.wikiwand.com/ko/');
mapkey('Q', '#8Open omnibar for word translation', function() {
Front.openOmniquery({
url: "https://m.endic.naver.com/search.nhn?searchOption=all&query=",
/*
* or
url: function(q) {
return "https://api.shanbay.com/bdc/search/?word=" + q
},
*/
query: Visual.getWordUnderCursor(),
style: "opacity: 0.8;",
parseResult: function(res) {
var res = JSON.parse(res.text);
return [ renderShanbay(res) ];
}
});
});
Visual.setTranslationService("https://m.endic.naver.com/search.nhn?searchOption=all&query=", function(res) {
var res = JSON.parse(res.text);
return renderShanbay(res);
});
/*
mapkey('q', '#1Click on an Image or a button', function() {
Hints.create("img, button", Hints.dispatchMouseClick);
searchSelectedWith('http://images.google.com/searchbyimage?image_url=', false, false, '');
});
mapkey('ya', '#7Copy a link URL to the clipboard', function() {
Hints.create('*[href]', function(element) {
Clipboard.write(element.href);
});
});
*/
mapkey('q', '#1Click on an Image or a button', function() {
Hints.create("img, button", function(element) {
Clipboard.write(element.src);
searchSelectedWith('http://images.google.com/searchbyimage?image_url=', false, false, '');
});
});
// surround - Todo: nam of <
mapkey('"yy', "surround url with double quotation mark", function() {
Clipboard.write( '"' + window.location.href + '"');
});
// Todo : why it is not work
vmapkey('Y', "surround selection with doube quotation mark", function() {
Clipcoard.write( '"' + window.getSelection().toString() + '"');
});
/*
vmapkey('<y', "surround selection with TODO", function() {
Clipcoard.write( '<' + window.getSelection().toString() + '>');
});
vmapkey('(y', "surround selection with brackets mark", function() {
Clipcoard.write( '(' + window.getSelection().toString() + ')');
});
*/