-
Notifications
You must be signed in to change notification settings - Fork 4
/
cvimrc
59 lines (54 loc) · 2.11 KB
/
cvimrc
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
set nosmoothscroll
set noautofocus
set typelinkhints
let locale = "jp" " This allows cVim to use google.co.jp to search rather than google.com.
let barposition = "top"
let searchlimit = 30
let scrollstep = 70
let hintcharacters = "asdfqwerzxcv"
let nextmatchpattern = "((?!first)(下一页|下一頁|下页|下頁|前进|前進|繼續|继续|更多|next|more|>|›|»|forward| )+)"
let blacklists = [
\ "https://mail.google.com/*",
\ "http://*shanbay.com/*",
\ "https://dynalist.io/*",
\ "https://efss-cn.internet.*",
\ "https://project.internet.*",
\ "https://space.internet.*",
\ "https://roamresearch.com/",
\ "https://logseq.com/"
\ ]
let searchengine gghk = "https://www.google.com.hk/?gws_rd=ssl#newwindow=1&q="
let searchengine ggjp = "https://www.google.co.jp/search?newwindow=1&q="
let searchengine bug = "https://bugs.debian.org/"
let searchengine pkg = "https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords="
let searchengine pkgc = "https://packages.debian.org/search?searchon=contents&keywords=%s&mode=filename&suite=stable&arch=any"
let searchengine pts = "https://packages.qa.debian.org/?src="
let searchengine dict = "http://dict.cn/mini.php?q="
let searchengine diigo = "https://www.diigo.com/search?what="
let searchengine wiki = "https://zh.wikipedia.org/w/index.php?title=Special%3A%E6%90%9C%E7%B4%A2&profile=default&search=%s&fulltext=Search"
let completionengines = ["ggjp", "diigo"]
let defaultengine = "ggjp"
map d :quit<CR>
" close then (g)o lef(t)
map D :execute gTx<CR>
map u lastClosedTab
map <Space> scrollPageDown
map <BS> goBack
map \ goForward
map - scrollPageUp
map . nextTab
map , previousTab
map ` nextTab
map ~ previousTab
map ; ]]
map : setMark
map <C-d> scrollPageDown
map <C-u> scrollPageUp
let qmark c = ["http://cnbeta.com"]
let qmark y = ["http://www.youku.com"]
let qmark k = ["gen.link/pw"]
let qmark t = ["https://translate.google.com/?hl=zh-CN&tab=TT"]
let qmark G = ["https://github.com/"]
let qmark T = ["https://twitter.com/"]
let qmark Y = ["https://youtube.com/"]
let qmark M = ["https://mail.google.com"]