-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc
84 lines (58 loc) · 1.88 KB
/
rc
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
colorscheme molokai
" Vimperator preferences. {{{
" Completion.
set wildmode=list:longest
set noautocomplete
set complete=st
" Default search engine.
set defsearch=ixquick
" Open a new tab for some commands.
set newtab+=addons,downloads,help
" Only display addons and tabs bars.
set toolbars=none,addons,tabs
" Configure the status bar.
set status=input,ssl,location,bookmark,history,tabcount,position
" Show the destination of the link under the cursor in the command line.
set showstatuslinks=2
" }}}
" Plugins options. {{{
" External editor to use for text field editing.
set editor=gvim\ -f
" }}}
" Key mappings. {{{
" Shortcut for "reader view" mode.
map ,rv :emenu View.Enter Reader View<CR>
" To enable remapping <Space>.
js <<EOM
window.addEventListener('keypress',function (event) {
var code=event.charCode;
if ((liberator.mode == modes.INSERT && modes.extended == modes.MENU) ||
(liberator.mode == modes.NORMAL && code == 32) ||
(liberator.mode == modes.COMMAND_LINE && code != 32)) {
let map = mappings.get(liberator.mode, events.toString(event));
if (map) {
event.preventDefault();
event.stopPropagation();
map.execute();
}
}
}, false);
EOM
nnoremap <Space> <C-d>
nnoremap <S-Space> <C-u>
" Insert at the end of input fields.
noremap gi gi<End>
inoremap <S-Insert> <C-v>
cnoremap <S-Insert> <C-v>
" }}}
" User styles. {{{
" Inverted mode support.
style -name invert chrome://* #content { filter: invert(100%) hue-rotate(180deg); }
styledisable -name invert
map v :styletoggle -name invert<CR>
" Disable findbar (prevent if from poping when using 'n' does not match).
style -name nofindbar chrome://* findbar { display: none; }
style -name notextshadow * * { text-shadow: none !important; }
style -name fixublockicon chrome://* #nav-bar * { visibility: visible; }
" }}}
" vim: ft=vim sw=2 foldmethod=marker foldlevel=0