-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimperatorrc
106 lines (81 loc) · 3.09 KB
/
.vimperatorrc
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
" Configuration file for vimperator(FireFox extension)
" Title(default was "[pagetilte] - Vimperator")
set titlestring=ζ'ヮ')ζ<うっうー
" QuickHint's characters - use alphabet
set hc="abcdefghijklmnopqrstuvwxyz"
" タブの閉じるボタン非表示
set! browser.tabs.closeButtons=2
" ページロード時にテキストボックスにフォーカスするのを防ぐ
" set focuscontent
"Google Suggest と ブックマーク補完を使用する
set complete=blSfs
" hit-a-hintのhintに表示する属性
" (value|label|name)
set hintinputs=""
" ]]/[[ で移動
set nextpattern=^次(へ|の|ペ),^続き,\bnext\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\bmore\b
set previouspattern=^前(へ|の|ペ),^戻る,\bprev|previous\b,^<$,^(<<|«)$,^(<|«),(<|«)$
" Reloading this file
nnoremap <C-i> :<C-u>source ~/.vimperatorrc<CR>:echo "Reloaded!"<CR>
" Search Highlight OFF
nnoremap <Esc><Esc> :noh<CR>
nnoremap <C-[><C-[> :noh<CR>
" move like in the terminal in the editing box (input:text, textarea ...etc.)
inoremap <C-f> <Right>
inoremap <C-b> <Left>
inoremap <C-n> <Down>
inoremap <C-p> <Up>
inoremap <C-m> <CR>
" move like in the terminal in the command-line box
cnoremap <C-f> <Right>
cnoremap <C-b> <Left>
" command-line completion movements
cnoremap <C-n> <Tab>
cnoremap <C-p> <S-Tab>
" swap tab deletion behavior
nnoremap d D
nnoremap D d
" remove deafult map
nnoremap <C-l> <Nop>
" カラースキーム
colorscheme sweets
" hit-a-hintのフォントスタイル
" http://d.hatena.ne.jp/hayamiz/20090519/1242739865
" highlight! Hint font-size: 12pt; background: #CCF; color: #333; border: 1px solid yellow; font-family: Ricty,"MS ゴシック"; padding: 0 3px; opacity:0.85;
highlight! Hint font-family: Ricty,"MS ゴシック"; font-size: 16pt; font-weight: bold; text-shadow: -1px -1px 2px black, 1px -1px 2px black, -1px 1px 2px black, 1px 1px 2px black; color: #9EADE5;
highlight! HintElem color: #241651; background-color: #78C14D;
highlight! HintActive color: black; background-color: #FF8700;
" ステータスラインのフォントサイズを大きくする
" http://blog.ruedap.com/entry/20100812/vimperator_statusbar_fontsize
style chrome://* <<EOM
#liberator-commandline { /* command line */
font-family: Menlo, "M+1VM+IPAG circle", Monaco, monospace !important;
background-color: #222 !important;
color: #fff !important;
font-weight: normal !important;
font-size: 12pt !important;
}
#liberator-statusline { /* url, progress arrow, [n/n] n% */
font-family: Menlo, "M+1VM+IPAG circle", Monaco, monospace !important;
font-weight: normal !important;
font-size: 12pt !important;
padding:2px 2px !important;
}
.hl-StatusLine { /* regular page */
background-color: #000 !important;
color: #B0FF00 !important;
}
.hl-StatusLineSecure { /* secure page */
background-color: #B0FF00 !important; /* light green */
color: black !important;
}
EOM
" clock style
style -name clock chrome://* <<EOM
#liberator-plugin-clock-box > * {
background-color: #000 !important;
color: #B0FF00 !important;
font-size: 10pt !important;
}
EOM
" vim: ft=vim