-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vimperatorrc
99 lines (71 loc) · 1.99 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
" .vimperatorrc
" janus_wel <janus.wel.3@gmail.com>
" options {{{1
" safe mode
"set noloadplugins
" title bar
set titlestring="Firefox with Vimperator"
" default search/suggest engine: google
set defsearch=google
set suggestengines=google
" completion priority in :[tab]open
" bookmarks, suggestions, awesome bar
set complete=bhSl
" a max number of listing items
set maxitems=10
" scroll height of <C-d> / <C-u>
set scroll=3
set hintmatching=contains
" need <CR> anytime in hints mode
set followhints=1
" all type pages are opened in new tab
" addons + downloads + help + javascript + prefs
set newtab=all
" preferences ( Firefox about:config ) {{{1
" tabs {{{2
" display tab-bar anytime
" set! browser.tabs.autoHide=false
set! browser.zoom.full=true
set! ui.key.menuAccessKey=0
set! ui.key.menuAccessKeyFocuses=false
" don't animate tab-bar when switch to fullscreen
set! browser.fullscreen.animateUp=0
" miscs {{{2
" case-sensitive when find
set! accessibility.typeaheadfind.casesensitive=1
" don't resize when open images
set! browser.enabel_automatic_image_resizing=false
" the number of URL-completions is 20
set! browser.urlbar.maxRichResults=20
" the number of popups is 100
set! dom.popup_maximum=100
" activate spell-check textarea/input
set! layout.spellcheckDefault=2
" don't select trailing spaces, when select words.
set! layout.word_select.eat_space_to_next_word=false
" don't show download-manager
set! browser.download.manager.showWhenStarting=false
" show tabbar only
set gui=none,tabs,addons
" variables {{{1
" this must be set before map operation, otherwise use default value.
let mapleader=','
" mappings {{{1
" clear all key mappings
" to avoid troubles from loading rc file several times
mapclear
cmapclear
imapclear
" tab operation {{{2
noremap <C-h> gT
noremap <C-l> gt
noremap <C-left> :tabprevious<CR>
noremap <C-right> :tabnext <CR>
noremap J :tabprevious<CR>
noremap K :tabnext<CR>
" searching {{{2
noremap <Leader>/ :nohlsearch<CR>
map + <C-+>
map zi <C-+>
map \- <C-->
map zo <C-->