-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimperatorrc
106 lines (92 loc) · 2.65 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
"3.7 (created: 2013/04/03 18:20:07)
nnoremap J <C-d>
nnoremap K <C-u>
nnoremap H gT
nnoremap L gt
nnoremap <F1> <Nop>
nnoremap <C-P> <Nop>
nnoremap <C-j> <Nop>
nnoremap <C-k> <Nop>
nnoremap <Esc> <C-c>
noremap <C-a> <Ins><C-a><Ins>
inoremap <C-a> <Ins><C-a><Ins>
noremap <C-S-w> <Nop>
inoremap <C-S-w> <Nop>
noremap <Alt><F4> <Nop>
inoremap <Alt><F4> <Nop>
noremap <C-q> <Nop>
inoremap <C-q> <Nop>
nnoremap <C-p> :js if(!getBrowser().mCurrentTab.pinned){getBrowser().pinTab(getBrowser().mCurrentTab)}else{getBrowser().unpinTab(getBrowser().mCurrentTab)}<CR>
nnoremap <C-S-p> :winopen -private<CR>
nnoremap gi gi<C-e>
nnoremap gI gi<Ins><C-a><Ins><C-c>
nnoremap j 12j
nnoremap k 12k
nnoremap F f
nnoremap f F
nnoremap ; :
nnoremap : ;
nnoremap , <C-o>
nnoremap . <C-i>
noremap <C-t> <C-t>o
inoremap <C-t> <C-t>o
colorscheme Mediterranean
set maxitems=7
set history=200
set animations=true
set defsearch=e
set hintchars=asdfg;lkjh
set noscrollbars
set tabnumbers
set gui=nonavigation
set toolbars=nonavigation
"highlight Hint font-size:115%;color:white;background-color:red;padding:2px
hi HintExt::before opacity: .5
source! ~/.vimperatorrc.local
" auto pass
autocmd LocationChange .* js modes.passAllKeys = /feedly\.com/.test(buffer.URL)
"autocmd LocationChange .* js modes.passAllKeys = /www\.inoreader\.com/.test(buffer.URL)
"autocmd LocationChange .* js modes.passAllKeys = /none\.iblogger\.org/ttrss/.test(buffer.URL)
" vim: set ft=vimperator:
" hide bottombar
noremap <silent> <F8> :js toggle_bottombar()<CR>
noremap : :js toggle_bottombar('on')<CR>:
noremap b :js toggle_bottombar('on')<CR>b
noremap o :js toggle_bottombar('on')<CR>o
noremap O :js toggle_bottombar('on')<CR>O
noremap t :js toggle_bottombar('on')<CR>t
noremap T :js toggle_bottombar('on')<CR>T
noremap / :js toggle_bottombar('on')<CR>/
noremap <Esc> <Esc>:js toggle_bottombar('off')<CR>
cnoremap <CR> <CR>:js toggle_bottombar('off')<CR>
cnoremap ` <CR> g<
:js << EOF
function toggle_bottombar(p) {
var bb = document.getElementById('liberator-bottombar');
if (!bb)
return;
if (p == 'on'){
bb.style.height = '';
bb.style.overflow = '';
return;
}
if (p == 'off'){
bb.style.height = '0px';
bb.style.overflow = 'hidden';
return;
}
bb.style.height = (bb.style.height == '') ? '0px' : '';
bb.style.overflow = (bb.style.height == '') ? '' : 'hidden';
}
toggle_bottombar();
EOF
" This is for all the patches to vimperator until next release comes out
" VimperatorPatches: {
" Fix search highlighting
js <<EOF
finder.highlight = function() {
this.setupFindbar();
this.findbar.toggleHighlight(true);
}
EOF
" }