-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cvimrc
109 lines (97 loc) · 2.53 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
" https://gist.github.com/shyazusa/bc383e91edbf00a10e1d09a8a0c68d27
" Settings
let scrolltep = 30
let fullpagescrollpercent = 100
let blacklists = ["https://mail.google.com/*"]
let mapleader = ","
let hintcharacters = "hjklasdfgyuiopqwertnmzxcvb"
let barposition = "bottom"
" let locale = "jp"
set autohidecursor
set nosmoothscroll
set autoupdategist
set noautofocus
" set nohud
" set noinsertmappings
" qmarks
" template
" let qmark a = [""]
" development
let qmark l = ["https://localhost:3000"]
let qmark r = ["https://redmine.geo-code.jp/my/page"]
" Github
let qmark g = ["https://github.com/"]
let qmark p = ["https://github.com/shyazusa/"]
let qmark w = ["https://github.com/shyazusa/"]
let qmark c = ["https://github.com/shyazusa/"]
" chat
let qmark s = ["https://shyazusa.slack.com/messages/general"]
" SNS
let qmark t = ["https://twitter.com/"]
" other
let qmark d = ["https://drive.google.com/drive/u/0/my-drive"]
" Move
map <C-h> scrollLeft
map <C-j> scrollDown
map <C-k> scrollUp
map <C-l> scrollRight
map <C-u> scrollPageUp
map <C-d> scrollPageDown
map <C-b> scrollFullPageUp
map <C-f> scrollFullPageDown
" Navigation
map d closeTab
map u lastClosedTab
map <C-p> previousTab
map <C-n> nextTab
map h previousTab
map l nextTab
map H moveTabLeft
map L moveTabRight
map <C-h> moveTabLeft
map <C-l> moveTabRight
map <C-i> goForward
map <C-o> goBack
map :wo :new<Space>
map ;wo :new<Space>
map R reloadTabUncached
" Want to make a key to yank current selected word and search it...
" map <C-g> :execute vlhyP<CR>
" Currently, " :" doesn't shows command line.
" Need at least one charactor (use <Space> here)
map ; :<Space>
" Text boxes
iunmapAll
" Script
copyTitleUrlForTextChat() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = document.title + " - " + url;
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
copyTitleUrlForMarkDown() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = "[" + document.title + "]" + "(" + url + ")";
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
copyTitleUrlForMilanote() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = document.title + "\n" + url;
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
copyTitleUrlForScrapbox() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = "[" + document.title + " " + url + "]";
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
map yc :call copyTitleUrlForTextChat<CR>
map ym :call copyTitleUrlForMarkDown<CR>
map yl :call copyTitleUrlForMilanote<CR>
map ys :call copyTitleUrlForScrapbox<CR>