-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cvimrc
96 lines (91 loc) · 2.25 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
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
let locale = 'jp'
set smoothscroll
set noautofocus
let scrollstep = 150
let hintcharacters = 'asdfgwertxcvbhjklyuiobnm'
let fullpagescrollpercent = 95
let scrollduration = 250
set scalehints
set cncpcompletion
" not work even if I set ctrl-n key binding in chrome extension page
" set cncpcompletion
set noinsertmappings
set noshowtabindices
let previousmatchpattern = '((?!last)(prev(ious)?|newer|back|«|less|<|‹|前のページ|前へ| )+)'
let nextmatchpattern = '((?!first)(next|older|more|>|›|»|forward|次のページ|次へ| )+)'
let barposition = 'bottom'
let mapleader = ","
""""""""""""""""""""""
" Key Bindings
""""""""""""""""""""""
unmap s
unmap w
unmap d
unmap u
unmap e
unmap W
unmap A
unmap gr
unmap cr
unmap gt
unmap K
unmap R
unmap gT
unmap J
unmap E
unmap <C-S-h>
unmap <C-S-l>
unmap gxT
unmap gxt
unmap gx0
unmap gx$
unmap X
unmap S
unmap D
unmap <C-6>
" movement
map h scrollLeft
map l scrollRight
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
" link hints
map im fullImageHint
" miscellaneous
map R reloadTabUncached
" tab
map <C-h> previousTab
map <C-l> nextTab
map u lastClosedTab
" Switch between alphabetical hint characters and numeric hints
map <C-i> :set numerichints!<CR>
" search word in clipboard whether it's URL
map <Leader>p :tabnew google @"<CR>
clipboardCopy(text) -> {{
Clipboard.copy(text);
Status.setMessage('copied: ' + text, 2);
}}
" copy URL as Markdown
map <Leader>ym :call clipboardCopy(`[${document.title.replace(/(\])/g, '\\$1')}](${location.href.replace(/\)/, '\\$1')})`)<CR>
" copy URL as plain text
map <Leader>yp :call clipboardCopy(`${document.title}\n${location.href}`)<CR>
" blacklists
let blacklists = ["https://drive.google.com/*"]
""""""""""""""""""""""
" Web Seach
""""""""""""""""""""""
" completionengines
let completionengines = ['google']
" defaultengine
let defaultengine = 'google'
" Amazon jp
let searchengine amazon = 'https://www.amazon.co.jp/s/ref=nb_sb_noss_2?__mk_ja_JP=%s&url=search-alias%3Daps&field-keywords=%s'
" Wikipedia jp
let searchengine wiki = 'https://ja.wikipedia.org/wiki/%s'
" Yodobashi
let searchengine yodobashi = 'https://www.yodobashi.com/?word=%s'
" alias
let searchalias a = 'amazon'
let searchalias w = 'wiki'
let searchalias y = 'yodobashi'